In my view, I have:
<%= select(“division_filter”, “division_id”, Division.find_all.collect
{|p| [ p.division, p.id ] }, { :include_blank => true }) %>
How do I retrieve the division_id in my controller?
In my view, I have:
<%= select(“division_filter”, “division_id”, Division.find_all.collect
{|p| [ p.division, p.id ] }, { :include_blank => true }) %>
How do I retrieve the division_id in my controller?
FYI, here is the HTML generated by the above:
Division1Name Division2Name Division3Name Division4NameOn 1/18/06, Eric M. [email protected] wrote:
FYI, here is the HTML generated by the above:
Division1Name Division2Name Division3Name Division4Name
In your controller,
params[:division_filter][:division_id]
will contain the selected value.
Thank you very much.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs