I have a model, let's call it foo, which has a paperclip photo attachment. I know I can edit the foo card as such:
<%= image_tag @this.photo.url %> which would render whatever photo attachment is associated with this card. This is cool :) However, I'd like to do something similar on the front page! On my front-page within a <section>...</section> I'd like to dispay a random image. that is to say, i'd like to make a call similiar to the one above that chooses a random foo and displays that foo's image. BTW: I'm tyring to work my way to building a site similar to kittenwars.com. When I get it all working, I look forward to submitting a recipe to the hobo cookbook! :p Thanks, HoboHippy -- 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.
