I am using simple form gem and I am wondering how do you do a collection_select ? I know you can do a select, but how do you get the values from a collection?
So, for example, how would you do this in a simple form:
collection_select(:post, :author_id, Author.all, :id, :name_with_initial, :prompt => true)
Thanks
You would do it like this:
Take a look at SimpleForm – Collection Select Input