Commits

Micha Kops  committed 809c417

Rendering model fixed.

  • Participants
  • Parent commits 78e4688

Comments (0)

Files changed (3)

-App = Ember.Application.create();
+window.App = Ember.Application.create();
 App.ApplicationAdapter = DS.FixtureAdapter.extend(); // fake external service

File js/model/article.js

-App.Articles = DS.Model.extend({
-  id: DS.attr('int'),
+App.Article = DS.Model.extend({
   title: DS.attr('string'),
   author: DS.attr('string'),
   isPublished: DS.attr('boolean')
 });
 
-App.Articles.FIXTURES = [{
+
+App.Article.FIXTURES = [{
    id:1,
    title: 'Playing with Java 8 Lambda Expressions',
    author: 'Micha Kops',

File js/routes.js

 
 App.ArticlesRoute = Ember.Route.extend({
   model: function () {
-    return this.store.find('articles');
+    return this.store.find('article');
   }
 });