Browse files

Adds note for root path routing when overriding

  • Loading branch information...
1 parent be575c5 commit 10fee67962ae451eb9fa6f28966eca864fa75f0e @craigwaterman craigwaterman committed Jan 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
3 README.md
@@ -131,6 +131,9 @@ Override the default route:
# in config/routes.rb
match "/pages/*id" => 'pages#show', :as => :page, :format => false
+ # if routing the root path, update for your controller
+ root :to => 'pages#show', :id => 'home'
+
Then modify it to subclass from High Voltage, adding whatever you need:
class PagesController < HighVoltage::PagesController

0 comments on commit 10fee67

Please sign in to comment.