How to change a Ruby on Rails application name?

ruby-on-rails, ruby-on-rails-3

Solution

There's a Rails plugin to do it for you. Super convenient.

https://github.com/get/rename

Problem

I have a Ruby on Rails application that was created using: ``` rails new old_name -d mysql ``` Now I want to change the application name to be `new_name`. Just changing the application folder name will not be enough, because the database name, for example, also has to be changed (from `old_name_development` to `new_name_development`). I wonder if there are other places in the automatically generated files that needs changing. Is there any built in command for changing the application name ?

Original source