Skip to content

Instantly share code, notes, and snippets.

@BowlingX
Created January 22, 2013 16:16
Show Gist options
  • Save BowlingX/4595935 to your computer and use it in GitHub Desktop.
Save BowlingX/4595935 to your computer and use it in GitHub Desktop.
window.Forum = Ember.Application.create();
Forum.Router.map(function () {
this.resource('forum', function () {
this.route('detail', {path: '/:language/detail/:path'});
});
});
Forum.ForumDetailRoute = Ember.Route.extend({
setupController: function (cntr) {
alert("test");
}
});
Forum.IndexRoute = Ember.Route.extend({
setupController: function() {
Forum.Router.reopen({ location: 'history' })
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment