7
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Rails 4.1] プロジェクト名の変更

Posted at

Rails4.1系のプロジェクト名を変更する際のメモです。

手動

以下の二箇所で大丈夫そうです。。。。

  • config/application.rb
  • config/initializers/session_store.rb
config/application.rb
module ProjectName
 
end
config/initializers/session_store.rb
 Rails.application.config.session_store :cookie_store, key: '_project_name_session'

簡単。
でも不安。。。

Gemに頼る

これに頼ります。

  • install
Gemfile
gem 'rename'
  • Usage
$ rails g rename:app_to NewName

これだけ。

References

7
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?