carlqt
5/7/2014 - 11:30 AM

http://stackoverflow.com/questions/23495765/fetch-rails-json-data-from-heroku-with-ajax-to-static-website


$(document).ready(function(){

	$.ajax({
		type: 'GET',
		dataType: 'json',
		url: 'http://localhost:3000/projects.json',
		success: function(data, status, xhr) {
			$.each(data, function(key, val){ 
				console.log(data);
			})
		}
	})

})