How to rename model

generator, rename, ruby-on-rails

Solution

update: this script is not supported anymore

A script exists that will do the job for you:

http://github.com/hiroshi/script-refactor

Problem

I made a mistake early in development, and named one of my models with plural noun (`Users` instead of `User`). Is there an easy way to rename it and corresponding controller (similar to generating it with `script/generate` way)?

Original source