This project is archived and is in readonly mode.

#4040 ✓invalid
Szymon Nowak

Route globbing broken in Rails 3

Reported by Szymon Nowak | February 23rd, 2010 @ 09:53 AM | in 3.0.2

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.

Comments and changes to this ticket

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>

Pages