I have culture_id in Picture Model as well

On Tue, Jun 14, 2011 at 10:33 AM, Noel <[email protected]> wrote:

> I think the problem is that you dont have :culture_id => in the
> Picture model.  Is that right?
>
> On Tue, Jun 14, 2011 at 7:19 AM, Yennie <[email protected]> wrote:
> >
> > Hi all,
> >
> > I have an error which said undefined method culture_id
> > but in the DB, it contains "culture_id" in user table..
> >
> > Picture.where(:album_id => :album, :culture_id =>
> > User.culture_id).first
> >
> > Please help to solve this problem...
> >
> > THanks
> >
> > --
> > 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.
> >
> >
>
> --
> 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.
>
>


-- 
--------------------------------

Thank you,

Yen

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