README.md in routable-0.0.3 vs README.md in routable-0.1.0
- old
+ new
@@ -79,9 +79,14 @@
@router.map("menu", MenuController, shared: true)
@router.map("profile/:id", ProfileController)
@router.map("messages", MessagesController)
@router.map("message/:id", MessageThreadController)
+ # can also route arbitrary blocks of code
+ @router.map("logout") do
+ User.logout
+ end
+
@window.rootViewController = @router.navigation_controller
end
end
```