Ember working with rails api