Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## index.html.haml
- %h1 All possessions
- - for possession in @possessions
- #posession
- = image_tag Image.find_by_id(possession.image_id).file.url(:small)
- belongs to
- = User.find_by_id(possession.user_id).login
Add Comment
Please, Sign In to add comment