I have 2 models:

mop, has_and_belong_to_many :contacts
contact, has_and_belong_to_many :mops

when I save my mop Ii have the users coming in a an array:
["9",10"]

I am doing this to asscociate each one to a mop:

@contacts.each do |contact|
    @mop.contacts << contact
end

Contact(#44950470) expected, got String(#20837400)

It is giving me the above error.  Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to