@@ -620,7 +620,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:
...
@@ -620,7 +620,7 @@ You can specify what Rails should route +"/"+ to with the +root+ method:
root :to => 'pages#main'
root :to => 'pages#main'
</ruby>
</ruby>
You should put the +root+ route at the end of the file. You also need to delete the +public/index.html+ file for the root route to take effect.
You should put the +root+ route at the top of the file, because it is the most popular route and should be matched first. You also need to delete the +public/index.html+ file for the root route to take effect.