{"comment":{"url":"https://api.github.com/repos/jenreiher/rotten-mangoes/comments/18033550","html_url":"https://github.com/jenreiher/rotten-mangoes/commit/aed0c2ca8b8f36241c7d2b04605ae5fae1f705df#commitcomment-18033550","id":18033550,"user":{"login":"brendandeere","id":6353433,"avatar_url":"https://avatars.githubusercontent.com/u/6353433?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandeere","html_url":"https://github.com/brendandeere","followers_url":"https://api.github.com/users/brendandeere/followers","following_url":"https://api.github.com/users/brendandeere/following{/other_user}","gists_url":"https://api.github.com/users/brendandeere/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandeere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandeere/subscriptions","organizations_url":"https://api.github.com/users/brendandeere/orgs","repos_url":"https://api.github.com/users/brendandeere/repos","events_url":"https://api.github.com/users/brendandeere/events{/privacy}","received_events_url":"https://api.github.com/users/brendandeere/received_events","type":"User","site_admin":false},"position":4,"line":3,"path":"config/routes.rb","commit_id":"aed0c2ca8b8f36241c7d2b04605ae5fae1f705df","created_at":"2016-06-27T23:46:22Z","updated_at":"2016-06-27T23:46:22Z","body":"Writing individual routes in this way is a very natural direction to take after having working with sinatra. However in coding we always wany to keep our code as DRY as possible (dont repeat yourself).\r\n\r\nAll of these routes can be defined inside the same admin block: \r\n\r\n```ruby \r\nnamespace :admin do \r\n  get 'users/index'\r\n  get 'users/show'\r\n  # ...\r\nend\r\n```\r\n\r\nbut it would be be even better to use the helpers rails provides us with to fill all of these routes out quickly: \r\n\r\n```ruby \r\n  namespace :admin do\r\n    resources :users\r\n  end \r\n```\r\n^^ This gives you all 7 RESTful routes for \"free\""}}
{"actor":{"display_login":"brendandeere"}}