Skip to content

Instantly share code, notes, and snippets.

@wycats
Created July 23, 2008 03:13
Show Gist options
  • Save wycats/1499 to your computer and use it in GitHub Desktop.
Save wycats/1499 to your computer and use it in GitHub Desktop.
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