Skip to content

Instantly share code, notes, and snippets.

View bernEsp's full-sized avatar

Bernardo Espinoza bernEsp

View GitHub Profile
@bernEsp
bernEsp / app.js
Created January 17, 2014 02:37 — forked from wycats/app.js
App.Router.map(function() {
this.resource('post', { path: '/posts/:post_id' });
});
App.PostRoute = Ember.Route.extend({
model: function(params) {
return this.store.find('post', params.post_id);
}
});