views:

75

answers:

1

I have a rails controller handling requests to www.mydomain/foo, now I want all traffic to www.mydomain/ (the domain root or homepage) to go to www.mydomain/foo. I asked a similiar question about how to do this with ReWrite, and haven't gotten an answer yet, but I would be happy also solving it in the controller so I have opened up this questrion to allow for either solution. Please help!

+2  A: 

I think what you're looking for is map.root

What you pass for the options will depend on your controller/actions setup.

Edit - don't forget to delete the index.html file from the /public directory.

Brian
That is exactly what I need, works like a charm. Thanks, I've been banging my head against the wall on this stupid thing.
Birdman
glad my own pain in learning rails could be helpful to someone else :)
Brian