Displaying 4 results from an estimated 4 matches for "eleudson".
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(:pe...
2006 Mar 20
3
Linking two HTML SELECT''s together
Hi,
How do I link two HTML SELECT''s together. Let''s say for example that I
have a drop-down list with a list of all countries. Once the user
selects one of the countries I would like to make an AJAX call back to
the server to populate the second drop-down list with all of the cities
for that country.
Any ideas on how to go about to do this?
Regards
Jerrie Pelser
--
2006 Apr 06
0
3 doubts on observe_field
...from_country.rhtml
... and not to use @form_country_id variable from _form.rhtml.
<select id="city_state_id" name="city[state_id]">
<%= options_from_collection_for_select @states, "id", "nome",
@form_country_id %>
</select>
Regards,
Eleudson Queiroz
jinfo@mandic.com.br
--
Posted via http://www.ruby-forum.com/.
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