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.
Mk 2. (Guest)
on 2009-05-29 01: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...
Maurício L. (Guest)
on 2009-05-29 01: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.