I am trying to replace the default homepage (public/index.html) to one
of my controllers.
I deleted the file in 'public/index.html' created a controller called
'site' and added this line to my 'routes.rb' file...
map.connect '', :controller => 'site', :action => 'index'
But when I go to my root URL ‘http://staging.mysite.com’ I get a 404
error. I tested my controller by going to ‘http://staging.mysite.com/
site’ and ‘http://staging.mysite.com/site/index’ and it works fine,
and displays the correct page.
Any ideas why the routing isn't working? This seems like this is very
basic, and should be a piece of cake.