Forum: Ruby on Rails how to set default path

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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.

Then:

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

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)
This topic is locked and can not be replied to.