Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README instructions for subclassed PagesController

  • Loading branch information...
commit 9c7c0ad655ba0b0365a355b064a3abce93b9c70a 1 parent 8884f70
@mhoran mhoran authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 README.md
View
6 README.md
@@ -96,7 +96,7 @@ Create a PagesController of your own:
Override the default route:
# in config/routes.rb
- resources :pages
+ match "/pages/*id" => 'pages#show', :as => :page, :format => false
Then modify it to subclass from High Voltage, adding whatever you need:
@@ -115,10 +115,6 @@ Then modify it to subclass from High Voltage, adding whatever you need:
end
end
-Remember that if you create your own PagesController, you'll need to review your custom routes so they point to it, that is, <code>pages#show</code> instead of <code>high_voltage/pages#show</code>, like this:
-
- match '/:id' => 'pages#show', :as => :static, :via => :get
-
Testing
-------

0 comments on commit 9c7c0ad

Please sign in to comment.
Something went wrong with that request. Please try again.