Ruby on Rails: Sending javascript data to ruby controller

后端 未结 3 1579
野性不改
野性不改 2021-01-24 02:22

I would like to send a javascript array to be processed by a method in my controller. I think I am doing this way wrong. I am a total RoR, jquery, and ajax noobie. Here is what

3条回答
  •  面向向阳花
    2021-01-24 02:47

    You should either create a template in app/views/qtl_table/save.html.erb or render something in your controller. If nothing is rendered in the controller action, Rails tries to display default template, and you don't have one.

提交回复
热议问题