Displaying 1 result from an estimated 1 matches for "variety_variety_id".
2006 Jun 14
4
Select box onchange problem
...Variety.find_all.collect {|c| [c.description, c.id]},
{},
{"onchange" =>
url_for(:controller => ''account'',
:action => ''add_to_varietytmp'')} ) %>
HTML output:
<select id="variety_variety_id" name="variety[variety_id]"
onchange="/account/add_to_varietytmp">
Two questions:
1.. I need to give a id to the method ''add_to_varietytmp'', how do
I give the correct id from the selected option?
2.. When I select an option in my selectbo...