Re: AssociationTypeMismatch got Fixnum

Dhanraj p.
Wed, 22 Aug 2012 09:46:53 -0000

MaD wrote in post #776440:
> what exaclty means randomly? does it happen in different places? is
> your own code mentioned in the trace? wich call would fail?
>
> it seems your code is expection an instance of Source but is getting a
> number (maybe the id) instead.
>
> in order to find the piece of code that is causing the error, you
> gotta try reproducing it.

>>>>>>>>>>>>>ans
if you will remove (belongs_to :model name) then it will work

--
Posted via http://www.ruby-forum.com/.

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.