Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
This is probably a very hypothetical problem. And please don't ask, how I found it. But somehow it still bugs me.
Steps to reproduce
Since Rails 4.0 it is possible to sneak in additional parameters via the
You will see that the parameters are added to the
Full reproduction example is available here (visualizer can be commented out): https://github.com/renuo/railshoeck-route-mapping/blob/master/sample.rb#L21
I'd expect the mapper to escape the colon somehow or to throw a route mapping/generation error.
This issue has been automatically marked as stale because it has not been commented on for at least three months.
For what it's worth, I was actually using this as a feature (upgrading to 6.0 today so just got bit)
resources :weeks, param: "year/:month/:day"
I was using this for identifying weeks not based on an id, but instead on a