Created
July 23, 2008 03:13
-
-
Save wycats/1499 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
Router.prepare do |r| | |
# generating this requires :domain, :controller, and :action | |
r.match("/:domain/complicated/url").to(:controller => "what", :action => "index") | |
# generating this requires :controller and :index | |
r.match("/:controller/:index").to | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment