Emre Erisgen
2008-Jun-30 13:17 UTC
· is there way to set my text fields with searching paramete
i used a search action. i''m printing the results to same page but after searching, my text fields set to empty. but i want to see what i search. For exmple if i write to search textfield ''This'' i want the textfield set to ''This'' after searching not empty -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thorsten Müller
2008-Jun-30 13:49 UTC
Re: · is there way to set my text fields with searching paramete
something like this: <%= text_field("search", "", :size => 17, :value => session[:search], :name => "search") %> where the search text is stored in session[:search] and assigned to the value --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---