I can make all my pages in app/view share the same look and feel by
However, when I go the root url: http://localhost:3000/ I get the
/public/index.html. It does not share the same layout. I currently hard
coded in index.html to make it look and feel the same.
I believe that I must miss something simple and obvious, please help!
Create a default controller for “myserver.com”, say “home_controller”
an ‘index’ action.
./script/generate controller home index
Then adjust config/routes.rb to include this near the top:
map.connect ‘’, :controller => “home”
Then take the content in public/index.html and put it in
Then remove public/index.html.
Then make sure it all works Once it works, add the following line to
your HomeController (outside/above ‘dev index’):
Then just remember that if you change app/views/home/index.rhtml you
to remove public/index.html.