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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to