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?
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 error you had
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 …\