&tag(Rails3/アップグレード); *目次 [#j12534c4] #contents *関連ページ [#q12f24de] *参考情報 [#v49dcbad] *3.1->3.2 [#g49939ad] **参考除法 [#q7ff5a33] -[[Rails 3.1.1から3.2.1へアップグレード - 発声練習:http://d.hatena.ne.jp/next49/20120201/p1]] **手順 [#u90477e0] -Gemfileのrailsバージョンを最新にする gem 'rails', '3.2.17' -bundleでgemを更新 bundle update -設定ファイルを書き換える bundle exec rake rails:update -書き換えられたファイルを確認する。 **トラブルシューティング [#l3d436ad] ***bundle installで「Could not find coffee-script-source-1.1.3 in any of the sources」と表示される。 [#bfbf31ff] -Gemfileからバージョン指定を外して実行する。[[Could not find coffee-rails-3.2.2 in any of the sources - Stack Overflow:http://stackoverflow.com/questions/17297612/could-not-find-coffee-rails-3-2-2-in-any-of-the-sources]] ***bundle installで「You are trying to install in deployment mode after changing your Gemfile.」と表示される。 [#t1721913] -GemfileとGemfile.lockの不一致? bundle install --no-deployment --path vendor/bundle -もしくは一旦vendor/bundle以下を削除(Gemfile.lockも削除)してから、bundle install ***bundle installで、libv8.aがリンクできずエラー。 [#n9b05bab] -[[ruby on rails - "gem install therubyracer -v '0.10.2'" on osx mavericks not installing - Stack Overflow:http://stackoverflow.com/questions/19630154/gem-install-therubyracer-v-0-10-2-on-osx-mavericks-not-installing]]によると、twitter-bootstrap-railsのせい? -以下の順番にGemfileに記述して、bundle install #pre{{ gem "therubyracer" gem "less-rails" gem "twitter-bootstrap-rails" }}