rails/rails — Issue #4997: Resource Path Broken
Author: kvnlnt
Created: 2012-02-10 20:40:26+00:00
State: open

I ran a scaffold with the name "Drive". All was well but I noticed the generated paths were "drife"...as in "new_drife_path" with an "F"!!!! I searched and replaced all instances of "drife" with "drive" and double checked my resources mapping, it's set to:

resources :drives

Even though I've changed any occurance of "drife" in my code and confirmed it's resource is correctly name a "rake routes" command still says "new_drife_path":

drive_index GET /drives(.:format) {:action=>"index", :controller=>"drives"}
POST /drives(.:format) {:action=>"create", :controller=>"drives"}
new_drife GET /drives/new(.:format) {:action=>"new", :controller=>"drives"}
edit_drife GET /drives/:id/edit(.:format) {:action=>"edit", :controller=>"drives"}
drive GET /drives/:id(.:format) {:action=>"show", :controller=>"drives"}
PUT /drives/:id(.:format) {:action=>"update", :controller=>"drives"}
DELETE /drives/:id(.:format) {:action=>"destroy", :controller=>"drives"}

Where in the heck are these paths being stored? I tried clearing every piece of cache i could think of...I even regenerated the controller...to no avail.