# My select line: select(:select, :user_id, users, { :selected => selecteduser }) # What I need to do to get the ID (the User model has a field user_name) User.find_by_user_name(params["select"]["user_id"]).id