This project is archived and is in readonly mode.

#3709 ✓resolved
phrewww

[PATCH] load initializers before routing

Reported by phrewww | January 16th, 2010 @ 05:43 PM | in 3.0.2

in rails 3, when irregular inflections used, routes are not created correctly.

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'yazi', 'yazilar' end

$ rake routes

  yazilars GET    /yazilars(.:format)            {:action=>"index", :controller=>"yazilars"}
           POST   /yazilars(.:format)            {:action=>"create", :controller=>"yazilars"}

new_yazilar GET /yazilars/new(.:format) {:action=>"new", :controller=>"yazilars"}

   yazilar GET    /yazilars/:id(.:format)        {:action=>"show", :controller=>"yazilars"}
           PUT    /yazilars/:id(.:format)        {:action=>"update", :controller=>"yazilars"}
           DELETE /yazilars/:id(.:format)        {:action=>"destroy", :controller=>"yazilars"}

edit_yazilar GET /yazilars/:id/edit(.:format) {:action=>"edit", :controller=>"yazilars"}

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>

Referenced by

Pages