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.
10 lines
241 B
Plaintext
10 lines
241 B
Plaintext
<%= back_link_to admin_answer_videos_path(@answer) %>
|
|
|
|
<h2>
|
|
<%= t("admin.answers.videos.edit.title") %>
|
|
</h2>
|
|
|
|
<div class="poll-question-answer-video-form">
|
|
<%= render "form", form_url: admin_answer_video_path(@answer, @video) %>
|
|
</div>
|