Permalink
Browse files

README updates: fixed generate example, added instructions on route o…

…verriding
  • Loading branch information...
1 parent 17fa92b commit 422657eae774ead0a11bd3e9ba4db55a43880d95 @jferris jferris committed Feb 1, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 README.md
View
@@ -27,8 +27,8 @@ Usage
Write your static pages and put them in the RAILS_ROOT/app/views/pages directory.
- mkdir app/views/pages
- touch app/views/pages/about.html.erb
+ $ mkdir app/views/pages
+ $ touch app/views/pages/about.html.erb
After putting something interesting there, you can link to it from anywhere in your app with:
@@ -69,7 +69,12 @@ Most common reasons to override?
Create a PagesController of your own:
- script/generate controller pages
+ $ rails generate controller pages
+
+Override the default route:
+
+ # in config/routes.rb
+ resources :pages
Then modify it to subclass from High Voltage, adding whatever you need:

0 comments on commit 422657e

Please sign in to comment.