I'm trying to simply display 2 fields (first name and last name) in a form select (f.select). Here is my code:
<%= f.select :person, User.where(verified_person: 't').pluck(:first_name, :last_name) %>
With the code above, the select drop-down field only displays first name. I'm using Active Record 4.2 and Rails 4. Any help?
Try Using This Code: