LoginSignup
6
6

More than 5 years have passed since last update.

Rails5.0:アプリの名称を変更する

Posted at

rails newコマンドで作成したアプリの名称を変更したい時に、変更するファイル。

環境

  • Rails:5.0.3
  • Ruby:2.4.2

変更箇所

下記の2箇所。

  • config/application.rb
module Sampleapp    <------------
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.
  end 
end
  • config/initializers/session_store.rb
Rails.application.config.session_store :cookie_store, key: '_sampleapp_session' <------------
6
6
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
6
6