Undefined method `mass_assignment_sanitizer=' for ActiveRecord::Base:Class (NoMethodError)

前端 未结 2 1518
抹茶落季
抹茶落季 2020-12-15 17:43

I\'m learning Rails with the awesome Ruby on Rails Tutorial by Michael Hartl. I\'m on section 3.2.2 (Test Driven Development) in which I need to run the following c

2条回答
  •  星月不相逢
    2020-12-15 18:14

    Did you downgrade from Rails 3.2 RC1? Comment out the following two lines from your development.rb:

    config.active_record.mass_assignment_sanitizer = :strict
    config.active_record.auto_explain_threshold_in_seconds = 0.5
    

提交回复
热议问题