We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I defined the following route:
map.with_options :conditions => {:subdomain => 'foo'} do |bar| bar.resources :users end
How can I define a root route for this subdomain? so that if anybody visits foo.example.com, they'll be automatically redirected to that controller?
I tried the following two rules with no luck:
Any ideas?
The text was updated successfully, but these errors were encountered:
Hey, I'm having the same problem, too, but on rails 3. Did you ever figure out a solution?
Sorry, something went wrong.
IIRC, I solved it with the following route:
bar.connect '', :controller => 'abc'
No branches or pull requests
Hello,
I defined the following route:
map.with_options :conditions => {:subdomain => 'foo'} do |bar|
bar.resources :users
end
How can I define a root route for this subdomain? so that if anybody visits foo.example.com, they'll be automatically redirected to that controller?
I tried the following two rules with no luck:
Any ideas?
The text was updated successfully, but these errors were encountered: