Displaying 1 result from an estimated 1 matches for "typemismatch".
2007 Jun 23
3
has_and_belongs_to_many and dynamic find
Hi
Just curious if anyone can explain why using a dynamic find fails to
work with << operator
I have standard habtm relationship
class User < ActiveRecord::Base
has_and_belongs_to_many :roles
Now when I assign a Role via << after saving the new User I get wierd
behaviour
but only when using the dynamic version of find
i.e
@user = User.new(p)
if @user.save
#