RailsCasts Pro episodes are now free!

Learn more or hide this

Ronald Chan's Profile

GitHub User: ronalchn

Comments by Ronald Chan



I came across this problem in Chrome (doesn't happen in Firefox). Apparently, its because the page and ajax request urls are the same (since Ryan showed pagination with only the requested format differentiating between returning the html and the javascript responses).


I think a more elegant solution than given in the stackoverflow answer, is to remove any page extension, and append the .js extension to change the url.