Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Can't start server with Rails 1.9.2

#3423

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/}>

Reported by Sam Ruby · October 25th, 2009 @ 01:14 AM

State: resolved
Milestone: 3.0.2
Assigned to: josh josh
Importance: none

Activity

  1. Nikolai Lugovoi
    Nikolai Lugovoi

    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 &lt;&lt; route
       route</code>
      
    
    
    

    October 25th, 2009 @ 05:17 PM

  2. josh
    josh
    • 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.

    October 25th, 2009 @ 05:56 PM

  3. Nikolai Lugovoi
    Nikolai Lugovoi

    actually, splat uses :to_a

    October 25th, 2009 @ 06:12 PM

  4. Repository
  5. Jeremy Kemper