This project is archived and is in readonly mode.
Can't start server with Rails 1.9.2
Reported by Sam Ruby | October 25th, 2009 @ 01:14 AM | in 3.0.2
Symptom: http://pastie.org/668553
Failure started with the following commit:
http://github.com/rails/rails/commit/a840c8afbf4e30b7bd9979e8cd7019...
At point of failure, app has the following values
With Ruby 1.8.7:
#<ActionDispatch::Routing::RouteSet::Dispatcher:0x7f61a47d20c8 @glob_param=nil>
With Ruby 1.9.2:
#<ActionDispatch::Routing::Route:0x00000003bbe9e8 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003c5cf80 @glob_param=nil>, @defaults={}, @name=nil, @requirements={}, @path="/:controller(/:action(/:id))", @conditions={:path_info=>/\A\/(?<controller>rails\/info|rails_info|application)(\/(?<action>[^\/.?]+)(\/(?<id>[^\/.?]+))?)?\Z/}>
Comments and changes to this ticket
-
Nikolai Lugovoi October 25th, 2009 @ 05:17 PM
Here is workaround - explicit call :to_ary
--- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -287,7 +287,7 @@ module ActionDispatch
def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil) route = Route.new(app, conditions, requirements, defaults, name)
-
@set.add_route(*route)
-
@set.add_route(*route.to_ary) named_routes[name] = route if name routes << route route</code>
-
-
josh October 25th, 2009 @ 05:56 PM
- Milestone cleared.
- State changed from new to open
Interesting. I guess * (splat) doesn't call to_ary anymore. Wonder if this was an intentional change.
-
Repository October 26th, 2009 @ 04:16 PM
- State changed from open to resolved
(from [6083a87d63af9ca1b66fedcb92cd4a395965173b]) Splat calls to_a not to_ary [#3423 state:resolved] http://github.com/rails/rails/commit/6083a87d63af9ca1b66fedcb92cd4a...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
Referenced by
- 3423 Can't start server with Rails 1.9.2 (from [6083a87d63af9ca1b66fedcb92cd4a395965173b]) Splat c...