In some cases (e.g. after editing or creating a resource with errors) the default back_link did not redirect to the expected page. Now we force the back_links to the index pages, so we always get the desired redirect.
12 lines
211 B
Plaintext
12 lines
211 B
Plaintext
<div class="row">
|
|
<div class="small-12 column">
|
|
<%= back_link_to admin_polls_path %>
|
|
|
|
<h2><%= t("admin.polls.new.title") %></h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="polls-form">
|
|
<%= render "form" %>
|
|
</div>
|