Skip to content

Commit

Permalink
Update README to clarify how to set up custom routes with an override…
Browse files Browse the repository at this point in the history
…n controller
  • Loading branch information
jaimeiniesta committed Oct 23, 2011
1 parent 012a65b commit 1450b15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down

0 comments on commit 1450b15

Please sign in to comment.