search for: person_country_id

Displaying 2 results from an estimated 2 matches for "person_country_id".

2006 Mar 18
10
collection_select''s linked
I created a form with two collection_select, country and state and would like to bring up to date the state list when to select a new country. How I can make this in Rails? Thanks Eleudson Brazil <p><label for="person_country_id">Country</label><br/> <%= collection_select(:person, :country_id, @countries, :id, :name) %></p> <p><label for="person_state_id">State</label><br/> <%= collection_select(:person, :country_id, @states, :id, :name) %></p>...
2010 Jan 22
0
dynamic select menu doesn't work for 'form_tag'
...ic-select-menus " site. i implemented and it was working fine for ''form_for'' tag. But i need to do the same function with ''form_tag'' as like as, <% javascript ''dynamic_states'' %> <%form_tag do%> <p> <label for="person_country_id">Country:</label> <%= collection_select :id, Country.find(:all), :id, :name, :prompt => "Select a Country" %> </p> <%end%> child records doesn''t changed to its corresponding parent when i use ''form_tag''.... i want to do with...