f.input :public, :collection => ['Public', 'Private'], label: "Access", selected: 1 %>. I don't want to have true or false in the options of the select, but I
This will return a new Collection with just the values you want. over every item and selecting the fields this way is one of the few solutions.
select("post", "person_id", Person.all.collect { p [ p.name, p.id ] } <option value= "">Select Person</option> <option value="1">David</option> <option. For example, if we have a User model with category_ids field and we have the following