Maybe this is the dumbest question ever but still - how to manually query server for the records of the certain model?
App.UrlNewRoute = Ember.Route.extend({
setupController: function(controller, model) {
console.dir(1);
this.store.find('UrlType').then(function(url_types) {
controller.set('urlTypes',url_types);
});
}
});
{"url_types":[{"id":1,"caption":"text link"},{"id":2,"caption":"guest post"},{"id":3,"caption":"blog comment"},{"id":4,"caption":"banner"},{"id":5,"caption":"profile"},{"id":6,"caption":"review"}]}