2012-03-26 69 views

回答

2

编辑Development.rb 和注释这些2行

config.active_record.mass_assignment_sanitizer =:严格 config.active_record.auto_explain_threshold_in_seconds = 0.5

0

确保您使用的是正确版本的active_record宝石,大概3.2.12,查看this question了解更多信息。