<%= f.text_field :item, :value => Date.today %>
above code displays todays date in item text field.
I want to display the parameter thr(search string)…somthin lik
<%= f.text_field :item, :value => params[:search_string] %>
but above code does not work.
Textfield is blank and no param value is printed. why? plz help.
Btw the search_string(param) was entered thru a textField that was in a
different view page. do we have to pass it to this ‘creteForm’ view
page. if yes,how to do it?