{"issue":{"milestone":null,"title":"Implement Rails' routing system in favor of ... everything","created_at":"2011-12-29T22:14:42Z","user":{"login":"rudiedirkx","id":168024,"url":"https://api.github.com/users/rudiedirkx","gravatar_id":"9875466c690e1da4c7144f4fbea796ab","avatar_url":"https://secure.gravatar.com/avatar/9875466c690e1da4c7144f4fbea796ab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"labels":[],"updated_at":"2011-12-29T22:14:42Z","state":"open","id":2683228,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/rudiedirkx/Rudie-on-wheels/issues/36","body":"The ROW `Router` can stay. It's only meant for `URI > URI`.\r\n\r\nThe ROW `Dispatcher` will change completely. Some **easy** config for **all** direct routes is required. Rails style. **Only** these routes will be available. (This config will contain only controllers.)\r\n\r\nSort of:\r\n\r\n\t/blog => blogController\r\n\t/blog/user => blog/userController\r\n\t/admin => adminController\r\n\t/admin/clubs => admin/clubsController\r\n\t/admin/clubs/# => admin/clubs_NController\r\n\t/admin/rules => admin/rulesController\r\n\r\netc\r\n\r\nand then a smart sort to get the specifics first. And then regex the request URI.\r\n\r\nNew Dispatcher steps:\r\n\r\n1. Use Router for URI => URI\r\n2. Get direct routes (sorted)\r\n3. Match URI to Controller from the top\r\n4. Match Action with Arguments (like current Dispatcher: optional/required args)\r\n5. If 4. matched but 5. didn't, do 4. + 5. again (starting with next direct route)\r\n\r\nThe last direct route should be `/`, because the fallback fits in there.\r\n\r\nOr should `/` be the first? It **is** the first (most?) requested URI...","number":36,"url":"https://api.github.com/repos/rudiedirkx/Rudie-on-wheels/issues/36","comments":0,"assignee":null},"action":"opened"}