Hey Mike -
On 16-Jul-07, at 12:17 PM, mike wrote:
>
> hi,
>
> i''m planning to deploy with a cluster of mongrels behind apache
and i
> have everything working ok but i''m wondering how to redirect users
> from the root path (i.e. mydomain.com/ ) to what i want to be my
> default controller/action?
>
> should i have a routes.rb entry that handles this or should apache
> rewrite the url?
>
> thanks,
> mike
>
Myself, I''d prefer to have this controlled by rails as I like to have
as much app logic residing there.
to use rails you''d add a route such as,
map.connect '''', :controller => "some_controller",
:action =>
"some_action"
There''s a commented out route like that in your default routes config.
Jodi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---