>From action to action: instance variables are available in the same
controller. Otherwise, use class variables and make them accessible.
Across requests: put them in the session var.
Jaap
On 10/24/05, Lindsay Vine
<mailforlindsay-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a searchform which submits to an action (a new db record is
created).
> That action then displays a list of results.
>
> The user has the ability to delete records from the search results.
> When the user click "delete" for some record, some action is
called
> and the record is deleted.
> The action then redirects back to the search results page.
>
> BUT the form info that was submitted to that page when the user
> searched is no longer there. Is there some way to make that form info
> persist? To store it in a session, or to pass it from action to action
> as a parameter?
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>