Retrieving value from select


#1

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?


#2

FYI, here is the HTML generated by the above:

Division1Name Division2Name Division3Name Division4Name

#3

On 1/18/06, Eric M. removed_email_address@domain.invalid 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.


#4

Thank you very much.