App.IndexRoute = Ember.Route.extend({
    beforeModel: function() {
        this.transitionTo('library');
    }
});

App.BookRoute = Ember.Route.extend({
    model: function(params) {
        return Ember.$.getJSON('/api/book/'+params.book_id).then(function(data){
            console.log(data.book);
            return data.book;
        });
    }
});

App.EditRoute = Ember.Route.extend({
    model: function(params) {
        return Ember.$.getJSON('/api/book/'+params.book_id).then(function(data){
            console.log(data.book);
            return data.book;
        });
    },
    setupController: function(controller, model) {
        controller.set('id', model.id);
        controller.set('title', model.title);
        controller.set('subtitle', model.subtitle);
        controller.set('authors', model.authors);
        controller.set('description', model.description);
        controller.set('cover', model.cover);
        controller.set('genres', model.genres);
    }
});


App.LibraryRoute = Ember.Route.extend({
    model: function(){
        return Ember.$.getJSON('/api/books/').then(function(data) {
            return data.books;
        });
    }
});

App.SettingsRoute = Ember.Route.extend({
    model: function(){
        return Ember.$.getJSON('/api/settings/').then(function(data) {
            return data.settings;
            console.log(data);
        });
    }
});

App.AuthorRoute = Ember.Route.extend({
    model: function(params){
        return Ember.$.getJSON('/api/books/author/'+params.author_id).then(function(data) {
            return {
                books: data.books,
                author: params.author_id
            }
        });
    }
});

App.GenreRoute = Ember.Route.extend({
    model: function(params){
        return Ember.$.getJSON('/api/books/genre/'+params.genre_id).then(function(data) {
            return {
                books: data.books,
                genre: params.genre_id
            }
        });
    }
});

@@ -1372,32 +1372,199 @@
 a);%0A        %7D);%0A
+    %7D,%0A    setupController: function(controller, model) %7B%0A        controller.set('realname', model.realname);%0A        controller.set('emailadd', model.email_address);%0A
     %7D%0A%7D);%0A%0AApp.A

Use setupController to set data for settings