Created
May 1, 2009 14:34
-
-
Save lazyatom/105069 to your computer and use it in GitHub Desktop.
This file contains 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 characters
# Some bloggish site that has a default route to display pages at | |
# SEO-friendly URLs, like /here-is-my-new-blog-post | |
ActionController::Routing::Routes.draw do |map| | |
map.resources :sections | |
# because this route matches everything, the plugin routes will never be hit. | |
map.connect "/:name", :controller => "pages", :action => "show" | |
end |
This file contains 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 characters
# A plugin doing auth-type stuff | |
ActionController::Routing::Routes.draw do |map| | |
map.login "/login", :controller => "session", :action => "new" | |
map.logout "/logout" # ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment