map.root doesn't do anything, index.html can't be changed

Environment:

Apache/2.2.8 (Ubuntu)
DAV/2
SVN/1.4.6
PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch
mod_ruby/1.2.6
Ruby/1.8.6(2007-09-24)
mod_ssl/2.2.8
OpenSSL/0.9.8g
Phusion_Passenger/2.0.1 Server

I've created several scaffolds that all work, and am trying to set the
root page for this app to default to one of the methods. Here's my
routes.rb:

ActionController::Routing::Routes.draw do |map|
   map.resources :physicians
   map.resources :patients
   map.resources :inventory_items
   map.root :controller => 'inventory_items'
   map.connect ':controller/:action/:id'
   map.connect ':controller/:action/:id.:format'
end

when I go to my root URI, I get the same old "Welcome aboard!" page.

To make things even more weird, I can modify and/or delete the
index.html page that is being displayed, with or without the map.root
entry, and the *exact* same page is displayed anyway. I've even grepped
every file in this application to make sure there is no other file with
the word "Welcome" in it, and there isn't.

I've restarted apache every time I make a modificaiton to the routes.rb,
just in case it's caching some how.

It looks like the only way I'll be able to override the index of the
root of the application is to rewrite the URI in the apache
configuration, to change "/" to "/my_method/my_action".

Anybody else have a problem like this?

when I go to my root URI, I get the same old "Welcome aboard!" page.

To make things even more weird, I can modify and/or delete the
index.html page that is being displayed, with or without the map.root
entry, and the *exact* same page is displayed anyway. I've even grepped
every file in this application to make sure there is no other file with
the word "Welcome" in it, and there isn't.

This sounds like you're not modifying the files you think you are -
clearly a file cannot be conjured out of thing air

Fred

Are you sure your browser hasn't cached the page so that it comes up
automatically. I've never had a problem like this one before.

Also, and this is for everyone: do we need to specify an :action =>
when we're mapping the root?

This sounds like you're not modifying the files you think you are -
clearly a file cannot be conjured out of thing air

Fred

And so it was... (sigh)

The directory in web directory was linking to the wrong app all along...

I was thinking maybe it was something weird about the caching.

grrrrr

Four hours down the drain.

Despair not! Four hours lost now will mean never having to worry about
the same problem again!

You can delete the index.html under public folder, then this problem
never happen again