Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PG::InternalError at /votos
- ===========================
- > ERROR: Syntax error near 'u' at position 8
- LINE 1: ...votes".* FROM "public"."votes" WHERE (referrer @> 'id => , u...
- ^
- app/models/vote.rb, line 66
- ---------------------------
- ``` ruby
- 61 def default_user_details
- 62 { voted: false, upvote: false, downvote: false }
- 63 end
- 64
- 65 def user_voting(ref_id, user_id)
- > 66 search_in_referrer(id: ref_id, user_id: user_id).first
- 67 end
- 68
- 69 def mount_hstore_query(hsh)
- 70 hsh.each_with_object('') do |(key, value), hstore_query|
- 71 hstore_query << "#{key} => #{value}, "
- ```
- App backtrace
- -------------
- - app/models/vote.rb:66:in `user_voting'
- - app/helpers/house/modal_helper.rb:20:in `learn_more_vote_tooltip'
- - app/controllers/house/votes_controller.rb:37:in `get_tooltip'
- - app/controllers/house/votes_controller.rb:14:in `create'
- - app/controllers/application_controller.rb:75:in `set_time_zone'
- - config/initializers/devise_tagged_logging.rb:9:in `block in call'
- - config/initializers/devise_tagged_logging.rb:9:in `call'
Add Comment
Please, Sign In to add comment