Permalink
Browse files

Merge pull request #25 from jaimeiniesta/master

Update README to clarify how to set up custom routes with an overriden controller
  • Loading branch information...
mjankowski committed Oct 25, 2011
2 parents 012a65b + 1450b15 commit 771a46e7dc00936728267e5396cae2206ef397a4
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -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
-------

0 comments on commit 771a46e

Please sign in to comment.