treefrogframework/treefrog-framework — pull request #29 by axos88 (2014-04-03 09:01:56+00:00)
Title: Add controller and action parameters

Depends on PRs: #20, #25, #26, #28

Adding :controller and :action parameters. This will enable us to route to a different controller or action based on the route.
This enables us to remove code duplication in the actioncontext, which will try to route using the first two parameters if no route is found.

/:controller/:action will route /foo/bar to controller foo and action bar
/:controller/:action "blah#foo" will route / to controller blah and action foo
/:controller/:action/:params "blah#foo" will route ///abc/def to controller blah and action foo with params ["abc", "def"]