Thanks all. :D.. and i have other question.. when i take the image file (BLOD).. i cannot display it .. do you have any idea... Please give me some advice.. thanks ....\
On Fri, Jun 10, 2011 at 12:19 AM, 3dd13 <[email protected]> wrote: > you exectued people.all.first > so the @user only has one picture object > instead of an array of pictures > > > > 2011/6/10 joanne <[email protected]> > >> hi all, >> >> I have an error "undefined method `each' for #<Picture:0x927dea0>" >> what is that mean? >> >> in my view >> [code] >> >> <% @user.each do |p| %> >> <%= p.image %> >> <% end %> >> >> [/code] >> >> >> in controller >> [code] >> @user=picture.all( >> :joins => :culture, >> :conditions => (Album.joins(:description))).first >> >> [/code] >> >> >> plz give me some advance >> >> -- >> 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.

