{"action":"created","issue":{"url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/134","repository_url":"https://api.github.com/repos/ryanto/acts_as_votable","labels_url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/134/comments","events_url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/134/events","html_url":"https://github.com/ryanto/acts_as_votable/issues/134","id":153587180,"number":134,"title":"undefined method `liked?'","user":{"login":"Rubioli","id":16593596,"avatar_url":"https://avatars.githubusercontent.com/u/16593596?v=3","gravatar_id":"","url":"https://api.github.com/users/Rubioli","html_url":"https://github.com/Rubioli","followers_url":"https://api.github.com/users/Rubioli/followers","following_url":"https://api.github.com/users/Rubioli/following{/other_user}","gists_url":"https://api.github.com/users/Rubioli/gists{/gist_id}","starred_url":"https://api.github.com/users/Rubioli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rubioli/subscriptions","organizations_url":"https://api.github.com/users/Rubioli/orgs","repos_url":"https://api.github.com/users/Rubioli/repos","events_url":"https://api.github.com/users/Rubioli/events{/privacy}","received_events_url":"https://api.github.com/users/Rubioli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-07T10:12:45Z","updated_at":"2016-05-11T04:31:28Z","closed_at":null,"body":"For some reason that I can't figure out, when I use `liked?`, `voted_on?` or  `voted_for?`, I get error `undefined method ...`\r\n\r\n*My controller:*\r\n```\r\ndef upvote\r\n    @choice = Choice.friendly.find(params[:id])\r\n    @choice.liked_by current_user\r\nend\r\n```\r\n\r\n*My models*\r\n```\r\nclass Choice < ActiveRecord::Base\r\n  acts_as_votable\r\nend\r\n\r\nclass User < ActiveRecord::Base\r\n  acts_as_voter\r\nend\r\n````\r\n\r\n*My route*\r\n```\r\nresources :choices do\r\n    member do\r\n      put \"like\", to: \"choices#upvote\"\r\n    end\r\n  end\r\n```\r\n\r\nAnd I have tried with this line of code to check if user has voted on a object/model:\r\n```\r\n- @user = current_user.id\r\n- if @user.liked? @choice\r\n    %h1 hallo\r\n```\r\n\r\nBut I still get the error, but everything else works fine.\r\n\r\nHope someone can help me out.\r\n\r\nThanks in advanced!"},"comment":{"url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/comments/218359166","html_url":"https://github.com/ryanto/acts_as_votable/issues/134#issuecomment-218359166","issue_url":"https://api.github.com/repos/ryanto/acts_as_votable/issues/134","id":218359166,"user":{"login":"MyklClason","id":3067801,"avatar_url":"https://avatars.githubusercontent.com/u/3067801?v=3","gravatar_id":"","url":"https://api.github.com/users/MyklClason","html_url":"https://github.com/MyklClason","followers_url":"https://api.github.com/users/MyklClason/followers","following_url":"https://api.github.com/users/MyklClason/following{/other_user}","gists_url":"https://api.github.com/users/MyklClason/gists{/gist_id}","starred_url":"https://api.github.com/users/MyklClason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyklClason/subscriptions","organizations_url":"https://api.github.com/users/MyklClason/orgs","repos_url":"https://api.github.com/users/MyklClason/repos","events_url":"https://api.github.com/users/MyklClason/events{/privacy}","received_events_url":"https://api.github.com/users/MyklClason/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T04:31:28Z","updated_at":"2016-05-11T04:31:28Z","body":"This is a standards issue. This gem makes make use of the standard where a `?` is added to the end of methods that return a Boolean, so it should work if you remove the question marks."}}