Do you mean f.select( :player ...) rather than just select? Assuming
you are inside a form_for that is.
Colin
undefined method `merge' for [["1st Team", 1], ["2nd Team", 2]]:Arrayundefined method `each' for "2":String
AND THIS IS THE PARAMETERS
"player"=>{"first_name"=>"test",
"last_name"=>"2",
"email"=>"eami...@test.com",
"teams"=>"2"},
"commit"=>"create player"}
<%= collection_select(:player, :team, Team.all, :id, :name, :prompt => true) %>
i think it will work for u.assume you have form_for To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/H5ugFaDYcIEJ.--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/BiGjGTP2ttsJ.
WELL YOU HAVE SOMETHING WRONG IN YOUR CONTROLLER CODE THEN. Have look
at the Rails Guide on debugging to find out how to debug the code.
Colin