This project is archived and is in readonly mode.
:defaults not in path cause "No matching segment exists" error
-
CancelProfileIsBroken
- Tag changed from 2.3.2, bug, routing to 2.3.2, bug, bugmash, routing
-
Elise Huard
reproduced on edge.
when starting the server:
actionpack/lib/action_controller/routing/builder.rb:109:inassign_route_options': format: No matching segment exists; cannot assign default (ArgumentError)<br/> I'm having a look. -
Elise Huard
defaults produces an error when used with connect or named routes.
defaults doesn't produce an error for resources or resource, where the segments argument of assign_route_options is an array with one element that respond to :key (and that key is 'format')
but the default doesn't seem to be taken into account (or used) at all.I add tests that reproduces the error (and point towards a solution, maybe), but am not about to start messing about with the structures of segments etc quite yet.
-
Jeremy Kemper
- Assigned user set to josh
-
josh
- State changed from new to open
- Milestone changed from 2.x to 2.3.4
-
josh
- State changed from open to incomplete
-
josh
- State changed from incomplete to stale
-
Andrew White
- Milestone cleared.
- State changed from stale to resolved
- Assigned user changed from josh to Andrew White
This appears to be working now:
# routes.rb resources :users, :defaults => { :locale => 'en' } andyw$ rails c >> app.users_path => "/users"Please update this ticket if it isn't working for you.
-
Ryan Bigg
Automatic cleanup of spam.
-
Jeff Kreeftmeijer
Automatic cleanup of spam.
