ruby on rails 3.2 - Ember Route model issue -


i following tutorial brian cadarella on dockyard. building ember app rails-api backend. http://reefpoints.dockyard.com/ember/2013/01/09/building-an-ember-app-with-rails-api-part-2.html

as change:

app.usersindexroute = ember.route.extend   setupcontroller: (controller, model) ->     controller.set('users', model)     @controllerfor('application').set('currentroute', 'users') 

to:

app.usersindexroute = ember.route.extend   model: ->     app.user.find()   setupcontroller: (controller, model) ->     controller.set('users', model)     @controllerfor('application').set('currentroute', 'users') 

my link users page not work. following error in firebug console:

typeerror: ember.rsvp.reject not function [break on error]    return ember.rsvp.reject(error); 

ember.rsvp.reject in ember-data.js

why not working? have been following tutorial word word.

this other answer of maybe of emberjs typeerror: object #<object> has no method 'reject'… i'm sure if update dependencies work.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -