This is a guide to creating a basic API in Rails for consumption by Ember.js or your favorite framework. Key areas are support of CORS requests and Jbuilder for creating a self-documenting API.
Add these gems to your Gemfile
gem 'rack-cors', :require => 'rack/cors'
gem 'jbuilder'