Tuesday, September 4, 2012

Rails, jQuery, and JSONP

Client side:
$.get(url, function(data){
    console.log(data);
  }, "jsonp");


Server side:
render :json=>{:abc=>"abc"}, :callback=>params[:callback] and return

No comments: