Displaying 2 results from an estimated 2 matches for "form_country_id".
2006 Apr 06
0
3 doubts on observe_field
..._state_country_id" name="city.state[country_id]">
*** QUESTION 1: How I can know if I am in the action new or edit without
needing to create the @is_new variable?
<% if @is_new %>
<option selected value="0">Selecione um Pa?s</option>
<% @form_country_id = 0 %>
<% else%>
<% @form_country_id = @city.state["country_id"] %>
<% end%>
<%= options_from_collection_for_select @countries, "id", "nome",
@form_country_id %>
</select></p>
<%= observe_field(:city_state_country_i...
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