Probably a basic question here. I have a search form with a bunch of
criteria in checkboxes, selects, text fields, etc. When the form is
submitted I''d like it to be re-displayed with the previous values
(along with search results if any)
I know how to do this with <% form_for @thing %> and assigning @thing to
an instance of something in the controller. But since the search terms
are not tied to a model or any other object, they are just in
params[:terms] for instance - how do you do it easily?
thanks
Sam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---