What I'm trying to get is a dropdown with 2 fields (name and account_code) as a value
<option value="1">ACC: John Doe</option>
But current code
<%= select_tag :user_id, options_for_select(@users.map{|u| [u.name, u.account_code] }) %>
outputs the following:
<option value="1">John Doe</option>
How do I make it display both user's account_code and name? Thanks!