· 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

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