Displaying 1 result from an estimated 1 matches for "wine_region_id".
2006 Jan 19
1
Populating a select field using observe_field
...#39;'wine'', ''country_id'', @countries.collect {|c| [c.name, c.id]}
%>
<%= observe_field ''wine_country_id'', :url => { :controller =>
''countries'', :action => ''regionOptions'' }, :update => ''wine_region_id'',
:with => ''"id="+value'' %>
</p>
<p><label for="wine_region_id">Region</label><br/>
<%= select ''wine'', ''region_id'', @wine.country.regions.collect {|r|
[r.name, r.id]} %>
&l...