{"action":"created","issue":{"url":"https://api.github.com/repos/panique/mini/issues/176","labels_url":"https://api.github.com/repos/panique/mini/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/panique/mini/issues/176/comments","events_url":"https://api.github.com/repos/panique/mini/issues/176/events","html_url":"https://github.com/panique/mini/issues/176","id":57072562,"number":176,"title":"[Question] Is it possible to do this? I can't think of a way.","user":{"login":"razuro","id":1119199,"avatar_url":"https://avatars.githubusercontent.com/u/1119199?v=3","gravatar_id":"","url":"https://api.github.com/users/razuro","html_url":"https://github.com/razuro","followers_url":"https://api.github.com/users/razuro/followers","following_url":"https://api.github.com/users/razuro/following{/other_user}","gists_url":"https://api.github.com/users/razuro/gists{/gist_id}","starred_url":"https://api.github.com/users/razuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razuro/subscriptions","organizations_url":"https://api.github.com/users/razuro/orgs","repos_url":"https://api.github.com/users/razuro/repos","events_url":"https://api.github.com/users/razuro/events{/privacy}","received_events_url":"https://api.github.com/users/razuro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-09T18:49:57Z","updated_at":"2015-02-10T15:05:43Z","closed_at":null,"body":"Hello,\r\n\r\nBased on the example demo, imagine if we add a genre detail to the song.\r\n\r\nThen can we get all songs based on genre using GET like this: \r\nhttp://example.com/mini/songs/rock\r\n\r\nand refine the list by appending the singer/band like this:\r\nhttp://example.com/mini/songs/rock/scorpions\r\n\r\nI've modified the index() to index($genre) but it seems index() doesnt like extra parameter.\r\nWarning: Missing argument 1 for Songs::index() eventhough I passed the argument to index.\r\n\r\nSorry for a noob post. Thank you in advance for anwsering my question."},"comment":{"url":"https://api.github.com/repos/panique/mini/issues/comments/73713922","html_url":"https://github.com/panique/mini/issues/176#issuecomment-73713922","issue_url":"https://api.github.com/repos/panique/mini/issues/176","id":73713922,"user":{"login":"panique","id":156321,"avatar_url":"https://avatars.githubusercontent.com/u/156321?v=3","gravatar_id":"","url":"https://api.github.com/users/panique","html_url":"https://github.com/panique","followers_url":"https://api.github.com/users/panique/followers","following_url":"https://api.github.com/users/panique/following{/other_user}","gists_url":"https://api.github.com/users/panique/gists{/gist_id}","starred_url":"https://api.github.com/users/panique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panique/subscriptions","organizations_url":"https://api.github.com/users/panique/orgs","repos_url":"https://api.github.com/users/panique/repos","events_url":"https://api.github.com/users/panique/events{/privacy}","received_events_url":"https://api.github.com/users/panique/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T15:05:43Z","updated_at":"2015-02-10T15:05:43Z","body":"@all: I'm currently writing a documentation for this, so then problems like this should be much easier to handle :)"}}