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?