LoginSignup
5
5

More than 5 years have passed since last update.

Rails3.0.x -> 3.2.x (´∀`∩)↑age↑

Last updated at Posted at 2013-03-11

Rails3.0.x -> 3.1.x の変更

下記の行を削除するかコメントアウトします。

app/config/environments/xxx.rb
#  config.action_view.debug_rjs             = true

Rails3.1.x -> 3.2.x の変更

開発用の環境に以下の行を追加します。

app/config/environments/development.rb
config.active_record.mass_assignment_sanitizer = :strict
config.active_record.auto_explain_threshold_in_seconds = 0.5

テスト用の環境に下記の行を追加します。

app/config/environments/test.rb
config.assets.allow_debugging = true

 

 
 
 

トラブルシューティング(上記の対応で解決)

■ エラー

log
undefined method `debug_rjs=' for ActionView::Base:Class

対応

下記の行を削除するかコメントアウトします。

app/config/environments/xxx.rb
#  config.action_view.debug_rjs             = true

■ エラー

log
undefined method `page_cache_extension' for ActionController::Base:Class

対応

開発用の環境に以下の行を追加します。

app/config/environments/development.rb
config.active_record.mass_assignment_sanitizer = :strict
config.active_record.auto_explain_threshold_in_seconds = 0.5

テスト環境に下記の行を追加します。

app/config/environments/test.rb
config.assets.allow_debugging = true

■ エラー

log
undefined local variable or method `trans_sid' for ApplicationController:Class

対応

jpmobileのバージョンを上げると動きます。


■ エラー

log
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /Users/me/myapp/config/environment.rb:6)

対応

gemの置き場所が変わるよ(Rails 4.0.xではサポートされなくなるよ)という警告。問題はなさそう。

5
5
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
5
5