Forum: Ruby on Rails Controller/view for "/" (root)?

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.
Onion K. (Guest)
on 2007-03-03 07:51
Is it possible to give a controller or view for the root directory or am
I limited to putting files in public/ for the root?
Tom F. (Guest)
on 2007-03-03 08:04
(Received via mailing list)
I usually have a controller I call 'main', with an action called
'index' for my home page.  Then I have a named route:

  map.home '/', :controller => 'main', :action => 'index'

I can add my About, Terms and Conditions, and other random pages that
don't fit anywhere else in the main controller.

On Mar 2, 9:51 pm, Onion K. <removed_email_address@domain.invalid>
Onion K. (Guest)
on 2007-03-04 00:23
That works fine, thanks.
This topic is locked and can not be replied to.