{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21085","labels_url":"https://api.github.com/repos/rails/rails/issues/21085/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21085/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21085/events","html_url":"https://github.com/rails/rails/issues/21085","id":98464603,"number":21085,"title":"Documentation on default params through routes is unclear","user":{"login":"mmuszynski","id":540982,"avatar_url":"https://avatars.githubusercontent.com/u/540982?v=3","gravatar_id":"","url":"https://api.github.com/users/mmuszynski","html_url":"https://github.com/mmuszynski","followers_url":"https://api.github.com/users/mmuszynski/followers","following_url":"https://api.github.com/users/mmuszynski/following{/other_user}","gists_url":"https://api.github.com/users/mmuszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mmuszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmuszynski/subscriptions","organizations_url":"https://api.github.com/users/mmuszynski/orgs","repos_url":"https://api.github.com/users/mmuszynski/repos","events_url":"https://api.github.com/users/mmuszynski/events{/privacy}","received_events_url":"https://api.github.com/users/mmuszynski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T20:21:46Z","updated_at":"2015-08-03T10:27:52Z","closed_at":null,"body":"http://guides.rubyonrails.org/routing.html#defining-defaults\r\n\r\nIt appears that defaults can only be overridden when they are part of the route. See this issue on Stack Overflow:\r\n\r\nhttp://stackoverflow.com/questions/31748306/overriding-default-parameters-in-ruby-on-rails-with-url-query-strings/31749247#31749247\r\n\r\nIf this is the desired case, can we get a clear mention of it on the documentation page?"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/127187051","html_url":"https://github.com/rails/rails/issues/21085#issuecomment-127187051","issue_url":"https://api.github.com/repos/rails/rails/issues/21085","id":127187051,"user":{"login":"pixeltrix","id":6321,"avatar_url":"https://avatars.githubusercontent.com/u/6321?v=3","gravatar_id":"","url":"https://api.github.com/users/pixeltrix","html_url":"https://github.com/pixeltrix","followers_url":"https://api.github.com/users/pixeltrix/followers","following_url":"https://api.github.com/users/pixeltrix/following{/other_user}","gists_url":"https://api.github.com/users/pixeltrix/gists{/gist_id}","starred_url":"https://api.github.com/users/pixeltrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixeltrix/subscriptions","organizations_url":"https://api.github.com/users/pixeltrix/orgs","repos_url":"https://api.github.com/users/pixeltrix/repos","events_url":"https://api.github.com/users/pixeltrix/events{/privacy}","received_events_url":"https://api.github.com/users/pixeltrix/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T10:27:52Z","updated_at":"2015-08-03T10:27:52Z","body":"This is for security reasons - otherwise url hacking could override the defaults. I'll look at adding a note to the guides."}}