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
To do this, I have used good old shell commands :
grep -r old_name * | cut -d: -f1 | xargs sed -i .bak 's/old_name/new_name/g'
This command replace the old_name with new_name in all file it finds the old_name. However, it creates a backup file with the extension '.bak'. Those file can be easily removed once you check everything went well.
The advantage of this, is that it is not 'rails version dependent'.