Parser error when using jQuery-UJS for remote link_to in Rails 3 app: how can I debug this?

后端 未结 7 1949
刺人心
刺人心 2021-02-14 12:55

I\'m trying to replace the content of a div after clicking on a link using Rails 3, remote_link :remote => true and jQuery.

So far, I\'ve been able to ge

7条回答
  •  你的背包
    2021-02-14 13:37

    instead of format.js use format.json

    setting $.ajaxSettings.dataType = 'json'; is liable to cause issues in other parts of your code.

提交回复
热议问题