Controller/view for "/" (root)?


#1

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?


#2

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


#3

That works fine, thanks.