Drop down menu

First, you'd place the select inside a form and then set the select so that it returns the cuisine.id in the select. Add a submit button and then your method specified in the form tag will receive the id as

<%= start_form_tag( {:action => 'select_cuisine'} ) %>   <%= select( :cuisine, :id, Cuisine.find_all.collect { |c| [c.name, c.id ] } ) %>   <%= submit_tag "Submit" %> <%= end_form_tag %>

Then, when the "select_cuisine" method is called the id will be in params[:cuisine][:id].

I didn't test the code above, but it should give you the idea.

David Schmidt

Richard wrote: