search for: ajax_states_from_country

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

2006 Apr 06
0
3 doubts on observe_field
...tate["country_id"] %> <% end%> <%= options_from_collection_for_select @countries, "id", "nome", @form_country_id %> </select></p> <%= observe_field(:city_state_country_id, :update => :select_state, :url => {:action => :ajax_states_from_country} ) %> *** QUESTION 2: How to force the exhibition of select_state when the page is loaded and it did not have change of value of country_id? This operation is necessary to show the state field in the edition action of the data. <p><label for="city_state_id">Estado<...
2006 Mar 01
1
observe_field question
I''m sure this is a simple problem, but I''ve been working on it for a couple days and can''t seem to figure out the correct way to structure my observe_field call. The HTML and Javascript generated all appear correct, but the AJAX call is never made. Below is the code I''m using and any help would be much appreciated. models_controller.rb def