Mike Mcc wrote: > Digital Pardoe wrote: >> >> It still doesn't physically redirect the user so they see >> http://website.com/home in their address bar. >> >> I have however given you the benefit of the doubt and tried it, it >> didn't work. > > It makes sense that you don't want two URIs on your site to have > identical content. > > Here is a somewhat kludgy way to do this - in routes.rb: > > map.root :controller => 'home', :action => 'redirect' > > Then in the home_controller.rb: > > def redirect > redirect_to url_for(:controller => 'home', :action => 'index') > end
Hi: 1.in Configure/routes.rb add a command: map.root :controller => "home" 2.delete public/index.html . Or it will not happen. Cruise -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

