特定の ember アプリケーションを取得したとします。
App = Ember.Application.create()
ルーター
App.Router.map(function() {
this.resource("posts", function() {
this.resource("post", {
path: "/:post_id"
})
});
});
アプリケーションが特定の /:post_id に入るたびに関数を実行するにはどうすればよいですか?