This project is archived and is in readonly mode.

#4131 ✓resolved
Jeroen van Dijk

Routing :defaults option is not passed through to params

Reported by Jeroen van Dijk | March 8th, 2010 @ 05:24 PM | in 3.0.2

The :defaults option in routing is not passed through to the controller params.

eg.

match 'photos/:id' => 'photos#show', :defaults => { :format => 'jpg' }

does not pass :format through to path_parameters, which is accessible via params in the controller.

Originally reported by Henrique in ticket 119 in Rails Guides.

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>

Attachments

Pages