cross domain call problem - rails and jquery
Hi guys i am trying to make ajax call with below code which makes sucessful request but i am not able to get the response data. I can see the response on firebug console but not in my code under "success" callback function of the ajax call. Any idea ??
My jquery code
$.ajax({
url:"http://192.168.2.53:3000/homes/show.json?format=json&callback=?",
dataType: 'json',
type: "GET",
success: function(responsedata){
console.log(responsedata);
}});
My Rails Code
def show
render :json => "i am sending you a json object. it works".to_json
end