将"params.permit!"(双引号中的内容)添加到create方法内第一行。
rails4.0 create引起的ActiveModel::ForbiddenAttributesError错误
最新推荐文章于 2014-07-18 13:17:08 发布
将"params.permit!"(双引号中的内容)添加到create方法内第一行。