search for: options_from_collect

Displaying 3 results from an estimated 3 matches for "options_from_collect".

2008 May 07
2
Begginer question: how to edit using options_from_collection
...ationship between Workout and Exercise Exercise has many Work out anyway in my code at Workout.view the edit.html that was generated through scaffold I wrote this <% form_for(@workout) do |f| %> <p> <b>Exercise</b><br /> <%= select_tag "exercise", options_from_collection_for_select(Exercise.find_all, "id", "name", @workout.exercise_id) %> </p> <%= f.submit "Update" %> </p> <% end %> For some reason it does not update when I click it. I don''t have any errors but it just doesn''t up...
2006 Mar 30
3
Rails 1.1, Markaby, options_from_collection
Last night, I upgraded one of my rails apps to 1.1. This app uses Markaby exclusively for its'' views, and once I checked out the latest revisiong of Markaby (r33), everything was working fine except for one thing: select_tag(''province_id'', options_from_collection_for_select(@provinces, "id", "name")) Now returns this (as you see it is spitting out the options both before and after the opening select tag): &lt;option value="2"&gt;Alberta&lt;/option&gt;<br /> &lt;option value="1"&gt;...
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 --