【发布时间】:2016-10-07 18:07:28
【问题描述】:
问题的标题几乎描述了我需要做什么。和这个问题基本一样,一直没有得到答案:
Rails 4: get list of permitted attributes (strong parameters) from a controller
与该问题中提供的示例类似,如果存在,它将等同于这样的内容:
account_update_permitted_params = AccountController.permitted_params(:update)
【问题讨论】:
标签: ruby-on-rails-4 controller strong-parameters