Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##index.rhtml
- <% if @loggedIn and @login.id == collection.favorites.user_id and collection.id == collection.favorites.post_id %>
- link to delete favorite because it exists
- <% end %>
- ##debug(collection)
- --- !ruby/object:Post
- attributes:
- visibility: "3"
- updated_at: 2007-02-08 12:07:29
- text: am i sanitized?
- title: searching works
- id: "68"
- idx: searching works sanitized
- user_id: "1"
- created_at: 2007-02-08 12:07:29
- favorites:
- - !ruby/object:Favorite
- attributes:
- post_id: "68"
- id: "1"
- user_id: "3"
- created_at: 2007-02-20 17:30:09
- user: !ruby/object:User
- attributes:
- salt:
- city:
- name:
- updated_at: 2007-01-29 16:32:49
- zip:
- crypted_password:
- remember_token_expires_at:
- country:
- id: "1"
- remember_token:
- login: anonymous
- created_at: 2007-01-29 16:32:49
- state:
- email:
- ## error
- undefined method `user_id' for Favorite:Class
Add Comment
Please, Sign In to add comment