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.
13 lines
331 B
Plaintext
13 lines
331 B
Plaintext
<%= back_link_to admin_question_path(@question) %>
|
|
|
|
<ul class="breadcrumbs margin-top">
|
|
<li><%= @question.title %></li>
|
|
<li><%= t("admin.answers.new.title") %></li>
|
|
</ul>
|
|
|
|
<h2><%= t("admin.answers.new.title") %></h2>
|
|
|
|
<div class="poll-question-answer-form">
|
|
<%= render "form", form_url: admin_question_answers_path %>
|
|
</div>
|