Rails link_to with remote: true processing html instead of js after page refresh

前端 未结 4 1010
自闭症患者
自闭症患者 2021-02-04 07:40

I have a search page in my app, where there is an ajax search form. The search form works properly, passing parameters to the model to filter the search, and the model returning

4条回答
  •  别跟我提以往
    2021-02-04 08:33

    In general, when you use link_to on a particular button or so, when you press the button, as js request is send to the controller, but also searches for the respective .js.erb file and so on.

提交回复
热议问题