The following produces a working select drop down that pulls from my user model:
<%= f.collection_select(:user_id, @users, :id, :firstname, options ={:prompt => "Select a User"} %>
I also have a column :lastname
.
I am trying to populate the select with something like :firstname + " " + :lastname
This obviously fails if I just stick it in where :firstname is. How would you go about concatenating the two columns and populating the select box.
Thanks.