I want underscore I am surprised about two things: I have the best solution I think that changing the railway route is there a better way > rail 3 and later you You can do this: Another option is to modify the rail through an initial medium. I do not recommend this though, because it breaks into future versions Could. It is better to use _ instead of using my url dash
- For example>
controller / my-action instead of
controller / my_action as the word divider.
_ or does it?
: like or use a named route.
Resources: user_bundles ,: path = & gt; '/ User-bundle'
: path as shown above.
Using a private API is not recommended and may break the rail versions in the future. #github.com/rails/rails/blob/4-1-stable/actionpack/lib/action_dispatch/routing/mapper.rb#L1012 ## Config / Analyzer / Adjust-Way-Path RB module Action Dispatch module routing class mapper module resource class resource DRF path @ path.dasherize end end end end end
Comments
Post a Comment