Dears,
Remembering last value in a select box don’t work for me as :
Controller :
@years=(1970…2005).to_a
Form:
<%= select_tag “year”, options_for_select( (2001…2005).to_a,
@params[:year] ) %>
I had to write
<%= select_tag “year”, options_for_select( (2001…2005).to_a,
@params[:year].to_i ) %>
for it works.
Not important, but I’m curious why…
Seasons Greetings,