Hi all, Can I redirect the root of my page to a contrroller/action? When I type www.example.com/ I don''t want to see the Rails welcome screen but want a redirect to a controller. I found. map.index '''', :controller => ''test'', :action => ''index'' in an applicaction but it doesn''t work for me. Thanks Stijn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
andrew.ohnstad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jun-20 14:18 UTC
Re: redirect root
You need to delete $RAILS_ROOT/public/index.html. On Jun 20, 10:00 am, Tarscher <tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > Can I redirect the root of my page to a contrroller/action? When I > typewww.example.com/I don''t want to see the Rails welcome screen but > want a redirect to a controller. > > I found. map.index '''', :controller => ''test'', :action => ''index'' in an > applicaction but it doesn''t work for me. > > Thanks > Stijn--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---