bingo bob wrote:
> 
> well this
> 
>   <%= select "location_id", 
> options_from_collection_for_select(@all_locations, :id, :name, selected 
> = @location.id), :prompt => "Please Select" %>
> 
> 
> just gives me a drop down with the word prompt in it.

Look again at Tom's example.  Notice that he has one more argument than 
you do.  You either need to add back the first argument or use
form_for @object do |f|
  f.select ...
end


Don't expect the same results as Tom if you're not doing the same thing.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to