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
--
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
-~----------~----~----~----~------~----~------~--~---