I know how to assemble a simple selection block that takes values ββfrom a model
<%= f.collection_select(:sector_id, Sector.all, :id, :name, :prompt => "Please Select a Sector") %>
My question is how can I allow the user to select several parameters and then save them in the model. I know what I need to use
:multiple => true
But not sure about the syntax
Usually for several records in the model I would use accepts_nested_attributes_for, but I correctly understood that I do not need this for an example?
thanks
ruby ruby-on-rails-3
Richlewis
source share