You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET /foo action.foo as :foo
GET /myscope/foo action.foo as :myscope_foo
GET /my-scope/foo action.foo as :"my-scope_foo" <--
GET /myslice/foo action.foo as :myslice_foo
GET /my-slice/foo action.foo as :"my-slice_foo" <--
For the URL helpers, the dashes should be converted to underscores like so:
GET /foo action.foo as :foo
GET /myscope/foo action.foo as :myscope_foo
GET /my-scope/foo action.foo as :my_scope_foo <--
GET /myslice/foo action.foo as :myslice_foo
GET /my-slice/foo action.foo as :my_slice_foo <--
By convention (better SEO etc), dashes are preferred over underscores in URLs, but this results in ugly helpers. Here's an example:
The following routes and URL helpers are created:
For the URL helpers, the dashes should be converted to underscores like so:
Discussion: https://discourse.hanamirb.org/t/route-scopes-with-dashes/1120
The text was updated successfully, but these errors were encountered: