search for: wine_country_id

Displaying 1 result from an estimated 1 matches for "wine_country_id".

2006 Jan 19
1
Populating a select field using observe_field
...g with Rails and AJAX, so forgive me if this is a bit of a stupid question. I''m trying to populate a select field when the value of another select field is changed. Looking through the API doc, it seems like observe_field is what I need. In my view I have: <p><label for="wine_country_id">Country</label><br/> <%= select ''wine'', ''country_id'', @countries.collect {|c| [c.name, c.id]} %> <%= observe_field ''wine_country_id'', :url => { :controller => ''countries'', :action => ...