Skip to content

Instantly share code, notes, and snippets.

@railsbob
Created April 6, 2010 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save railsbob/357443 to your computer and use it in GitHub Desktop.
Save railsbob/357443 to your computer and use it in GitHub Desktop.
# We want the account namespace routes available only if subdomains are specified
constraints(:subdomain => /[A-Za-z0-9]/) do
namespace :account do
resources :users
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment