I\'m trying to replace the content of a div after clicking on a link using Rails 3, remote_link :remote => true and jQuery.
remote_link :remote => true
So far, I\'ve been able to ge
instead of format.js use format.json
format.js
format.json
setting $.ajaxSettings.dataType = 'json'; is liable to cause issues in other parts of your code.
$.ajaxSettings.dataType = 'json';