rails redirect_to format html sends response in js

后端 未结 3 1370
粉色の甜心
粉色の甜心 2020-12-11 04:32

I made a before_filter in some of my controller to redirect keyword searches to the parent controller

It\'s very simple:

  before_filter :redirect_se         


        
3条回答
  •  春和景丽
    2020-12-11 05:03

    I think the problem is in the view which is doing the request

    you are sending a JS request (ajax), so you should return a js.erb file and render new HTML using js

提交回复
热议问题