On 23 Sep 2008, at 17:10, Daniel Berger wrote:
>
> # This does not with AR 2.1.1 => PGError: ERROR:  column "cuid" does
> not exist
> s = Schedule.find(
>   :first,
>   :include    => [:user],
>   :conditions => ["cuid = ?", "foo"] # Also tried user.cuid
> )
>
> What obvious bit am I missing?
>
You need to qualify that column name (ie users.cuid)

Fred
> Thanks,
>
> Dan
> >


--~--~---------~--~----~------------~-------~--~----~
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