Displaying 1 result from an estimated 1 matches for "variety_id".
2006 Jun 14
4
Select box onchange problem
...i''ve got the following problem. I have a check_box witch shows
a list of varieties. Now i want to call a action when the user
changes his selection. (the method to be called, will store the
selection from the user).
This is my code:
<%= select(''variety'', ''variety_id'',
Variety.find_all.collect {|c| [c.description, c.id]},
{},
{"onchange" =>
url_for(:controller => ''account'',
:action => ''add_to_varietytmp'')} ) %>
HTML output:...