Forum: Ruby on Rails how to set default path

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-28 23:06
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...
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-05-28 23:12
(Received via mailing list)
First, rename the index.html file to something else.


map.root :controller => 'subject', :action => 'list'

Maurício Linhares (pt-br) |
This topic is locked and can not be replied to.