Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README to clarify how to set up custom routes with an override…

…n controller
  • Loading branch information...
commit 1450b153a3c2498b183c064f8654fa473ca20f24 1 parent 012a65b
@jaimeiniesta jaimeiniesta authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -114,6 +114,10 @@ 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
-------
Please sign in to comment.
Something went wrong with that request. Please try again.