Search code examples
ruby-on-railsrenamebatch-rename

Rails: renaming a controller and corresponding model


Is there an easy way to rename a controller and model in my app and all the instances in the corresponding code?

I'm using textmate, would this be as simple as using the replace function and replacing the word Post with Report?


Solution

  • If you are using textmate, use 'command-shift-f" to look for a string throughout your entire project.