Getting a loop when using link_to :back
Posted
by onildo
on Stack Overflow
See other posts from Stack Overflow
or by onildo
Published on 2010-06-17T23:34:01Z
Indexed on
2010/06/17
23:43 UTC
Read the original article
Hit count: 131
ruby-on-rails
|link
I have this structure for the table course:
Search page -> Result Page -> Edit Page -> Show page
When i go from result page to a specific course edit page, i edit it, and end up on the show page, but when i hit back, i get a loop from show to edit, and back to show and so on.
I want the edit page to back to the result page if it came from there.
im using this on both:
<%= link_to "Back", :back %>
© Stack Overflow or respective owner