On Fri, Jun 10, 2011 at 12:23 PM, Dheeraj K.
Simple. You get only one picture object (the first one) because you’re
using .first method. Since you have only one object, you can’t iterate over
it using the each loop. Get it?
Just use @user.image instead in the view
or remove the .first if you want to display all user images.
maybe it’s just me but i suggest you rename your variables. given the
undefined method `each’ for #Picture:0x927dea0
it would be easier if you change @user to @pictures.
:joins => :culture,
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
For more options, visit this group at