ActionController::RoutingError (No route matches [PUT] ) for ajax call

后端 未结 2 586
我在风中等你
我在风中等你 2020-12-22 00:47

Hope all is well.

I want to ajax call on _questions_form. It works without remote: true option, yet I am using actioncable

2条回答
  •  悲&欢浪女
    2020-12-22 01:12

    just remove the :method => :put that you have on your form, if you will create, it needs to be post, but just remove the method part, and it will work.

    thats because there is no route to /tasks with put method when you create it with resources

提交回复
热议问题