Created
May 23, 2011 19:06
-
-
Save georgedrummond/987306 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Myapp::Application.routes.draw do | |
# signup.host.com | |
constraints :subdomain => "signup" do | |
resources :accounts | |
match "signup" => "accounts#new" | |
root :to => "accounts#new" | |
end | |
# Catch all subdomains except "signup.host.com" | |
constraints :subdomain => /^(?!signup\b)(\w+)/ do | |
root :to => "dashboard#show" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment