rails plugin install git://github.com/get/Rename.git
will allow us to rename only rails 3 app
Is there any gem available to rename Rails 4 app.
In Rails 5.x, doing it manually
using ag (https://github.com/ggreer/the_silver_searcher), there are files that use the default folder name (if generated via rails new .)
three basic files, relative to root of project, need to be updated:
There are sure to be more locations as mentioned previously such as database etc. Hope this helps.
Add
gem 'rename'
to Gemfile
then
bundle install
After that
rails g rename:app_to name_of_app
And if you are using mongoid then you need to rename the database name in config/mongoid.yml
For rails 5.2
Add gem 'rename'
to the gemfile
bundle install
rails g rename:into your_new_app_name