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.

Route globbing broken in Rails 3

#4040

Not sure if it's a problem with Rails code or documentation.

match 'match/*glob' => 'posts#example'

ActionController::Routing::Routes.recognize_path('match/1/2/3/4')
=> {:controller=>"posts", :action=>"example", :glob=>"1/2/3/4"}

In Rails 2 glob params where converted to an array and according to Rails guides they still should be.

Reported by Szymon Nowak · February 23rd, 2010 @ 09:53 AM

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

Activity

  1. José Valim
    José Valim
    • Assigned user set to josh
    • Milestone cleared.

    February 23rd, 2010 @ 09:00 PM

  2. Łukasz Strzałkowski
    Łukasz Strzałkowski
    • Assigned user cleared.

    Confirmed. It don't split glob's string into array and it definetly should. I'll try to look at this tommorow.

    February 23rd, 2010 @ 09:55 PM

  3. José Valim
    José Valim
    • Assigned user set to josh

    February 23rd, 2010 @ 09:58 PM

  4. josh
    josh
    • State changed from new to invalid

    This is an intended behavior change.

    February 24th, 2010 @ 01:52 AM

  5. Jeremy Kemper