Skip to content

Commit

Permalink
README updates: fixed generate example, added instructions on route o…
Browse files Browse the repository at this point in the history
…verriding
  • Loading branch information
jferris committed Feb 1, 2011
1 parent 17fa92b commit 422657e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit 422657e

Please sign in to comment.