I have a page (A) that contains a table with links in one column.
When the user hits a link it goes to another page (B) which is a read
only form page with a done button. This page (B) is being reused in
various parts of the app read pages © and (D). Thus when the user
clicks ‘Done’ it needs to return back to where she comes from ie either
(A), © or (D). I thought with the new Rails 0.14.3 I could just do
redirect_to :back and all my ills would be cured.
But… this redirects me back to where I currently am ie (B).
I am sure this is a very common problem out there. In my java life I
would create something in the session and consume it when this exact
Is there a magic rails spell that I could use for this situation ? I
am not sure how to get the URL of page (A) so I can stach it in the
session for later retrieval or somehow push both the controller and
action of the page where the request was originated (??)
Sample code please…
Thank you all !!