Guest User

Untitled

a guest
Mar 1st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ##index.rhtml
  2.  
  3. <% if @loggedIn and @login.id == collection.favorites.user_id and collection.id == collection.favorites.post_id %>
  4.  
  5. link to delete favorite because it exists
  6.  
  7. <% end %>
  8.  
  9. ##debug(collection)
  10. --- !ruby/object:Post
  11. attributes:
  12. visibility: "3"
  13. updated_at: 2007-02-08 12:07:29
  14. text: am i sanitized?
  15. title: searching works
  16. id: "68"
  17. idx: searching works sanitized
  18. user_id: "1"
  19. created_at: 2007-02-08 12:07:29
  20. favorites:
  21. - !ruby/object:Favorite
  22. attributes:
  23. post_id: "68"
  24. id: "1"
  25. user_id: "3"
  26. created_at: 2007-02-20 17:30:09
  27. user: !ruby/object:User
  28. attributes:
  29. salt:
  30. city:
  31. name:
  32. updated_at: 2007-01-29 16:32:49
  33. zip:
  34. crypted_password:
  35. remember_token_expires_at:
  36. country:
  37. id: "1"
  38. remember_token:
  39. login: anonymous
  40. created_at: 2007-01-29 16:32:49
  41. state:
  42. email:
  43.  
  44. ## error
  45.  
  46. undefined method `user_id' for Favorite:Class
Add Comment
Please, Sign In to add comment