Revisions
-
bradleypriest revised this gist
Jul 11, 2012 . 1 changed file with 9 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,19 @@ App.Router = Em.Router.extend({ root: Em.Route.extend({ route: '/', user: Em.Route.extend({ route: '/:user_id/', connectOutlets: function (router, context) { //What is context here? // it's simple in the one segment case where // its the return value of find on the model. }, index: Em.Route.extend({ redirectsTo: "post" }), post: Em.Route.extend({ route: "/post_id" }) }) }) }) -
Neppord created this gist
Jul 11, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ App.Router = Em.Router.extend({ root: Em.Route.extend({ route: '/', post: Em.Route.extend({ route: '/:user_id/:post_id', connectOutlets: function (router, context) { //What is context here? // it's simple in the one segment case where // its the return value of find on the model. } }) }) })