Rails 5中form_with(:url)的未允许参数

时间:2018-02-16 12:55:55

标签: ruby-on-rails forms controller strong-parameters

我有:

class Base1 {
public:
  virtual void func() = 0;
};

class Base2 {
public:
  virtual void func() = 0;
};

class Derived : public Base1, public Base2 {
public:
  void func() override { }
};

int main() {
  Derived d;
  d.func();
  return 0;
}

当我提交时,记录有关未经许可的参数的信号:<%= form_with url: retrieve_videos_path, local: true do |form| %> # some form stuff <%= form.submit %> <% end %>

我想,在模型的表单中,这些参数是'require'方法允许的,如:

Unpermitted parameters: :utf8, :authenticity_token, :commit

但如何为网址制作相同内容?

0 个答案:

没有答案