How to change a Ruby on Rails application name?

前端 未结 8 1222
渐次进展
渐次进展 2020-11-30 19:33

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

8条回答
  •  一生所求
    2020-11-30 19:55

    In Rails 3, there are references to the application name in the following files:

    • config/application.rb
    • config/environment.rb
    • config/environments/development.rb
    • config/environments/production.rb
    • config/environments/test.rb
    • config/initializers/secret_token.rb
    • config/initializers/session_store.rb
    • config/mongoid.yml (if using Mongoid)
    • config/routes.rb
    • config.ru
    • Rakefile
    • app/views/layouts/application.html.erb, in title tag

提交回复
热议问题