{"action":"closed","issue":{"url":"https://api.github.com/repos/lotus/router/issues/50","labels_url":"https://api.github.com/repos/lotus/router/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/lotus/router/issues/50/comments","events_url":"https://api.github.com/repos/lotus/router/issues/50/events","html_url":"https://github.com/lotus/router/issues/50","id":66338417,"number":50,"title":"Nested resources restrictions","user":{"login":"nicocharlery","id":1242365,"avatar_url":"https://avatars.githubusercontent.com/u/1242365?v=3","gravatar_id":"","url":"https://api.github.com/users/nicocharlery","html_url":"https://github.com/nicocharlery","followers_url":"https://api.github.com/users/nicocharlery/followers","following_url":"https://api.github.com/users/nicocharlery/following{/other_user}","gists_url":"https://api.github.com/users/nicocharlery/gists{/gist_id}","starred_url":"https://api.github.com/users/nicocharlery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicocharlery/subscriptions","organizations_url":"https://api.github.com/users/nicocharlery/orgs","repos_url":"https://api.github.com/users/nicocharlery/repos","events_url":"https://api.github.com/users/nicocharlery/events{/privacy}","received_events_url":"https://api.github.com/users/nicocharlery/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T16:28:21Z","updated_at":"2015-04-07T08:40:26Z","closed_at":"2015-04-07T08:40:26Z","body":"First, thank you for this great framework.\r\n\r\nThe issue I have is when nesting resources, I can't restrict the routes available by using `:only`\r\n\r\n```ruby\r\n resources :categories, only: :show do\r\n   member do\r\n      resources :posts, only: :show\r\n   end\r\n end\r\n```\r\nI have the following output when running `bundle exec lotus routes`:\r\n\r\n```bash\r\n/categories/:id/posts GET, HEAD  /categories/:id/posts          Web::Controllers::::Categories:::id::Posts::Index\r\nnew_/categories/:id/posts GET, HEAD  /categories/:id/posts/new      Web::Controllers::::Categories:::id::Posts::New\r\n/categories/:id/posts POST       /categories/:id/posts          Web::Controllers::::Categories:::id::Posts::Create\r\n/categories/:id/posts GET, HEAD  /categories/:id/posts/:id      Web::Controllers::::Categories:::id::Posts::Show\r\nedit_/categories/:id/posts GET, HEAD  /categories/:id/posts/:id/edit Web::Controllers::::Categories:::id::Posts::Edit\r\n/categories/:id/posts PATCH      /categories/:id/posts/:id      Web::Controllers::::Categories:::id::Posts::Update\r\n/categories/:id/posts DELETE     /categories/:id/posts/:id      Web::Controllers::::Categories:::id::Posts::Destroy\r\n          categories GET, HEAD  /categories/:id                Web::Controllers::Categories::Show\r\n```\r\nWhile I was expecting to only have this: \r\n\r\n```\r\n/categories/:id/posts GET, HEAD  /categories/:id/posts/:id      Web::Controllers::::Categories:::id::Posts::Show\r\n          categories GET, HEAD  /categories/:id                Web::Controllers::Categories::Show\r\n```"}}