This project is archived and is in readonly mode.

#4600 ✓resolved
Sasha Koss

Hash#index is deprecated at 'rake routes'

Reported by Sasha Koss | May 15th, 2010 @ 12:46 PM

In 'rake routes' command used deprecated Hash#index (in 1.9.x):

  name = Rails.application.routes.named_routes.routes.index(route).to_s

to fix it we should use Hash#key in 1.9.x (in 1.8.7 'key' method is not exist)

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=""></a>


Referenced by