Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on default params through routes is unclear #21085

Closed
mmuszynski opened this issue Jul 31, 2015 · 1 comment
Closed

Documentation on default params through routes is unclear #21085

mmuszynski opened this issue Jul 31, 2015 · 1 comment

Comments

@mmuszynski
Copy link

http://guides.rubyonrails.org/routing.html#defining-defaults

It appears that defaults can only be overridden when they are part of the route. See this issue on Stack Overflow:

http://stackoverflow.com/questions/31748306/overriding-default-parameters-in-ruby-on-rails-with-url-query-strings/31749247#31749247

If this is the desired case, can we get a clear mention of it on the documentation page?

@pixeltrix
Copy link
Contributor

This is for security reasons - otherwise url hacking could override the defaults. I'll look at adding a note to the guides.

pixeltrix added a commit that referenced this issue Aug 3, 2015
Fixes #21085.

(cherry picked from commit 8e4cdc92cf5614a654b129fcd5f39b7cbb200f8f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants