&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のせい?
-[[libv8, therubyracer のインストールが OS X Mavericks で失敗する - upinetree's tech blog:http://upinetree.hatenablog.com/entry/2013/12/04/225138]]
-以下の順番にGemfileに記述して、bundle install
#pre{{
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
}}

***This project has been renamed to Feedjira [#d4ae493c]
-[[The Ruby Toolbox - Feedzirra: This project has been renamed to Feedjira, find out more at feedjira.com.:https://www.ruby-toolbox.com/projects/feedzirra]]。いつの間にかfeedzirra→feedjiraに変わっていた。Gemfileの名前を変更して、bundle update

***Uncaught exception: undefined method `configure' for Twitter:Module [#gfbd459d]
-Twitterのライブラリの使用がいつの間にか変更に。[[Ruby - Twitter Gem 不具合! - mk-mode BLOG:http://www.mk-mode.com/octopress/2013/12/02/ruby-gem-twitter-failure/]]によると、以下のように修正する必要がある。
 client = Twitter::REST::Client.new do |config|
 end


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS