1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Readme updated to reflect new generator hook

You get a decorator whenever you create a controller. Still using 'generate resource' in the example to clearify this works from all generators that create controllers.
This commit is contained in:
Azul 2013-06-08 08:27:14 +02:00
parent cd4f298987
commit 179512a36a

View file

@ -131,11 +131,12 @@ end
### Generators
When you have Draper installed and generate a resource with...
When you have Draper installed and generate a controller for example with...
```
rails generate resource Article
```
...you'll get a decorator for free!
But if the `Article` model already exists, you can run...