Hey guys,

i'm new to rails and need some help. I want to create a simple
dropdown which gets its values from a model.

I found a propably suitable function but I dont quite get how to use
it. Here is what i did - and what does not work - but maybe you'll get
an idea for what it is meant for:

Server: <%= options_from_collection_for_select(@server, "pid",
"title", @account.server) %>

...
Well 'account' has a column which saves the server_id that correspons
to the id from servers table.

I hope you know what i mean... my english is a bit rusty ;)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to