Rails application learn API + ember.js