How to set default path

Hi gang!

I want / to point to app/subject/list instead of public/index.html. I
added this to routes.rb

map.connect ‘:controller/:action/:id’, :controller => ‘subject’, :action
=> ‘list’

But that does not work…

First, rename the index.html file to something else.

Then:

map.root :controller => ‘subject’, :action => ‘list’

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)