Guest User

Untitled

a guest
Jul 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. PG::InternalError at /votos
  2. ===========================
  3.  
  4. > ERROR: Syntax error near 'u' at position 8
  5. LINE 1: ...votes".* FROM "public"."votes" WHERE (referrer @> 'id => , u...
  6. ^
  7.  
  8.  
  9. app/models/vote.rb, line 66
  10. ---------------------------
  11.  
  12. ``` ruby
  13. 61 def default_user_details
  14. 62 { voted: false, upvote: false, downvote: false }
  15. 63 end
  16. 64
  17. 65 def user_voting(ref_id, user_id)
  18. > 66 search_in_referrer(id: ref_id, user_id: user_id).first
  19. 67 end
  20. 68
  21. 69 def mount_hstore_query(hsh)
  22. 70 hsh.each_with_object('') do |(key, value), hstore_query|
  23. 71 hstore_query << "#{key} => #{value}, "
  24. ```
  25.  
  26. App backtrace
  27. -------------
  28.  
  29. - app/models/vote.rb:66:in `user_voting'
  30. - app/helpers/house/modal_helper.rb:20:in `learn_more_vote_tooltip'
  31. - app/controllers/house/votes_controller.rb:37:in `get_tooltip'
  32. - app/controllers/house/votes_controller.rb:14:in `create'
  33. - app/controllers/application_controller.rb:75:in `set_time_zone'
  34. - config/initializers/devise_tagged_logging.rb:9:in `block in call'
  35. - config/initializers/devise_tagged_logging.rb:9:in `call'
Add Comment
Please, Sign In to add comment