Sunday, June 12, 2011

[Rails] Problem of displaying all user in rails

Hi, i have stuck how to make this more dynamic that is why i use
".first" to get the 1st user.

cuz i can print the picture with the first user in the record...
but i cannot display some other user(user2, user3 ... )

@user=picture.all(
:joins => :culture,
:conditions => (Album.joins(:description))).first

i want to make @user.image ( display image with all users)'


Can you give me some advice..


thank you so much

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate