我很难试图了解如何允许非模型参数。 我读过: Rails Strong Parameters: How to accept both model and non-model attributes? Rails 4 Strong parameters : permit all attributes? Strong Parameters 所以,对于一个 “正常” 的情况 - 让我们说,我有一个具有只是
HP强化扫描为我提供了一条消息,内容为重量分配:对我控制器中大多数操作方法的不安全粘合剂配置(API滥用,结构)。以下是操作方法的示例。 <HttpPost>
Function Edit(model as GridViewModel)
Dim manager as new Managers
manager.Edit(model.id, model.name, model.desc,model