{"action":"closed","issue":{"url":"https://api.github.com/repos/balvig/spyke/issues/36","labels_url":"https://api.github.com/repos/balvig/spyke/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/balvig/spyke/issues/36/comments","events_url":"https://api.github.com/repos/balvig/spyke/issues/36/events","html_url":"https://github.com/balvig/spyke/issues/36","id":59692073,"number":36,"title":"Question about how to find an object with multiple id's","user":{"login":"pedelman","id":955777,"avatar_url":"https://avatars.githubusercontent.com/u/955777?v=3","gravatar_id":"","url":"https://api.github.com/users/pedelman","html_url":"https://github.com/pedelman","followers_url":"https://api.github.com/users/pedelman/followers","following_url":"https://api.github.com/users/pedelman/following{/other_user}","gists_url":"https://api.github.com/users/pedelman/gists{/gist_id}","starred_url":"https://api.github.com/users/pedelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedelman/subscriptions","organizations_url":"https://api.github.com/users/pedelman/orgs","repos_url":"https://api.github.com/users/pedelman/repos","events_url":"https://api.github.com/users/pedelman/events{/privacy}","received_events_url":"https://api.github.com/users/pedelman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-03T19:28:20Z","updated_at":"2015-03-03T20:48:01Z","closed_at":"2015-03-03T20:48:01Z","body":"Much like in this example:\r\n\r\n```rb\r\nmodule Cookbook\r\n  class Tip < Spyke::Base\r\n    uri 'tips/(:id)'\r\n    has_many :likes, class_name: 'Cookbook::Like', uri: 'tips/:cookbook_tip_id/likes/(:id)'\r\n    has_many :favorites\r\n    has_many :votes\r\n    has_many :photos, class_name: 'Photo'\r\n  end\r\n\r\n  class Like < Spyke::Base\r\n  end\r\n\r\n  class Favorite < Spyke::Base\r\n  end\r\n\r\n  class Photo < Spyke::Base\r\n  end\r\nend\r\n```\r\n\r\nCould you explain how I could be able to query a like directly?\r\n\r\nSomething like:\r\n\r\n```rb\r\nCookbook::Like.all(:cookbook_tip_id => 1)\r\n\r\nor\r\n\r\nCookbook::Like.find(:cookbook_tip_id => 1, :id => 2)\r\n```"}}