Reputation: 638
I have generated a controller in Rails 3 and then destroyed it with:
rails destroy controller MyController
This does not seem to have removed MyController from the routing, there are still references to MyController and its methods when I run
rake routes
How do I remove the routing for the now destroyed MyController? Shouldn't the destroy command do this cleanup?
Sorry if this is a basic question, I am a Rails rookie.
Upvotes: 0
Views: 107
Reputation: 115362
Just delete the routes that refer to MyController
from the config/routes.rb
file.
Upvotes: 1