Updated Readme

This commit is contained in:
Alexander Pauly 2011-09-14 11:05:59 +02:00
parent 62d80310f4
commit 969473db10
1 changed files with 11 additions and 1 deletions

View File

@ -135,9 +135,19 @@ config.generators do |g|
g.helper false
end
```
If you want a helper, you can still call `rails generate helper` directly.
#### Replace Rails Helper Generation with Decorator Generation (Optional)
If you want to completely replace the helper generation with the decorator generator, just add this to your `config/application.rb`
```ruby
config.generators do |g|
g.helper :decorator
end
```
### Generate the Decorator
To decorate a model named `Article`: