@users is a list. @users[0].photo is the photo for the first user. That will fail if the list is empty, though. You probably want something like:
<repeat> <%= image_tag this.photo.url(:normal) %> </repeat> That'll display all the photos. Bryan hobo_hippy wrote: > ok, should have said I had tried that too. When I used that I got this > error instead: > > undefined method `photo' for #<WillPaginate::Collection:0xb5e252d8> > > app/views/users/index.dryml:3:in `render_page' > app/views/users/index.dryml:2:in `render_page' > app/views/taglibs/application.dryml:92:in `index_page__for_user' > app/views/taglibs/application.dryml:87:in `index_page__for_user' > app/views/taglibs/application.dryml:154:in `page' > app/views/taglibs/application.dryml:130:in `page' > app/views/taglibs/application.dryml:130:in `page' > app/views/taglibs/application.dryml:122:in `page' > app/views/taglibs/application.dryml:122:in `page' > app/views/taglibs/application.dryml:119:in `page' > app/views/taglibs/application.dryml:85:in `index_page__for_user' > app/views/taglibs/application.dryml:84:in `index_page__for_user' > app/views/users/index.dryml:1:in `render_page' > app/views/users/index.dryml:1:in `render_page' > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
