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

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.
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.