Update: this question was asked before there was a solution for it already in ActiveAdmin. As Joseph states, the ActiveAdmin documentation now contains this information, but the answers here are provided for those working with older versions of ActiveAdmin.
当strong_参数0.1.4与Rails 3.2.8中的ActiveAdmin 0.5.0一起使用时,如果您使用的模型通过以下方式使用strong_参数:
include ::ActiveModel::ForbiddenAttributesProtection
如果试图创建/编辑记录,则日志(log)中会出现以下错误:
ActiveModel::ForbiddenAttributes (ActiveModel::ForbiddenAttributes)