2013-05-09 4 views
1

나는 조선에 브라이언 Cadarella하여 자습서를 따라하고 있습니다. 레일-API 백엔드과 엠버 응용 프로그램을 구축 . http://reefpoints.dockyard.com/ember/2013/01/09/building-an-ember-app-with-rails-api-part-2.html엠버 경로 모델 문제

나는 변경하자마자 :

App.UsersIndexRoute = Ember.Route.extend 
    setupController: (controller, model) -> 
    controller.set('users', model) 
    @controllerFor('application').set('currentRoute', 'users') 

에 : 사용자 페이지에

App.UsersIndexRoute = Ember.Route.extend 
    model: -> 
    App.User.find() 
    setupController: (controller, model) -> 
    controller.set('users', model) 
    @controllerFor('application').set('currentRoute', 'users') 

내 링크가 작동하지 않습니다. 내 불을 지르고 콘솔에서 다음과 같은 오류가 발생합니다 :

TypeError: Ember.RSVP.reject is not a function 
[Break On This Error] 
return Ember.RSVP.reject(error); 

Ember.RSVP.reject는

가 왜 작동하지 않습니다 엠버 - data.js에? 나는 단어에 대한 튜토리얼 단어를 따라왔다.

+0

이 다른 대답은 아마도 당신을위한 도움이 될 것입니다. http://stackoverflow.com/questions/16368964/emberjs-typeerror-object-object-has-no-method-reject/16369039#16369039 당신은 당신의 의존성을 모두 업데이트 할 것이다. – intuitivepixel

+0

Eye Aye Utiful가 되라. 이제 고맙습니다. – collinglass

+0

당신이 당신이 그것을 받아 들일 수 있도록이 :) 덕분에 유용 만약 내가 대답으로 게시합니다 :) – intuitivepixel

답변

관련 문제