You can define the default value by using the :selected
option:
<%= s.select :category, :selected => params[:id] %>
You can define the default value by using the :selected
option:
<%= s.select :category, :selected => params[:id] %>