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.
2c42163dfe0b16dc95beac47f57594f1?d=identicon&s=25 Onion Knight (Guest)
on 2007-03-03 06: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?
F01c3ff32fee35d911e81c172a005012?d=identicon&s=25 Tom Fakes (Guest)
on 2007-03-03 07: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 Knight <rails-mailing-l...@andreas-s.net>
2c42163dfe0b16dc95beac47f57594f1?d=identicon&s=25 Onion Knight (Guest)
on 2007-03-03 23:23
That works fine, thanks.
This topic is locked and can not be replied to.