Gareth Reeves wrote:> On a system that I am working on, there are 2 places where you can edit
> answers to questions. After editing, I need to redirect back to the
> place where the user came from. A common problem I am sure, but I
> couldn''t find any info on how other people had handled it.
>
> I came up with a method called ''redirect_back_in_time''
that redirects
> you to a point in history.
>
> I know the edit takes 2 pages to complete so to get back to where the
> user started I know I need to redirect_back_in_time 3.
>
> I wrote this up on my blog http://counterflo.ws and put the code up
> there.
>
> How does this solution compare to what you guys have done? Is this
> better or worse?
I use the params hash rather than the request_uri, but it''s much the
same idea...
--
Alex