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