search for: lost_children

Displaying 1 result from an estimated 1 matches for "lost_children".

Did you mean: lost_childrens
2008 Jul 31
1
Stuck on options_from_collection_for_select
...us answer. I''m trying to make a drop down with select_tag and options_from_collection_for_select. I''m trying to fill this drop down list with different human races (white, black, hispanic, etc. in the database under the name field, with a unique id for each) in the index page of lost_children. I have two models: lost_children.rb [code] belongs_to :race [/code] race.rb [code] has_many: lost_childrens [/code] in the index view of lost_childrens: [code] <%= select_tag options_from_collection_for_select(Race.find(:all), :id, :name) %> [/code] This just brings up an empty drop...