LoginSignup
12

More than 5 years have passed since last update.

Rails 4.0.4 => Rails 4.1.0アップデート

Posted at

参考:Ruby on Rails 4.1 Release Notes #1(Rails4.1へのupgrade方法) - rochefort's blog


Gemfile

gem 'rails', '4.1.0'
bundle update
cat config/initializers/secret_token.rb
----------
APP_NAME::Application.config.secret_key_base = 'xxxxxxxxxx'
----------

↓secret_key_baseをsecret_key_baseにコピー

vi config/secrets.yml
----------
development:
  secret_key_base: 'xxxxxxxxxx'

test:
  secret_key_base: 'xxxxxxxxxx'

production:
  secret_key_base: 'xxxxxxxxxx'
----------
rm config/initializers/secret_token.rb

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
12