How to go 'back' 2 levels?
Posted
by
Joe McGuckin
on Stack Overflow
See other posts from Stack Overflow
or by Joe McGuckin
Published on 2011-01-06T01:34:16Z
Indexed on
2011/01/06
2:53 UTC
Read the original article
Hit count: 171
ruby-on-rails
From the list view of my app, I can view a list of records or drill down and edit/update a record. After updating, I want to go directly back to the list view, bypassing a couple of intermediate pages - but I don't simply want to link_to(:action => list)
- there's pagination involved. I want to go back to the exact 'list' page I came from. What's the best way? Pass a hidden arg somewhere with the page number? Is there an elegant way to accomplish this?
© Stack Overflow or respective owner