mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
adding the missing step in the "Up and Running" section of the readme
This commit is contained in:
parent
02ae325cdc
commit
fa3171e40d
1 changed files with 8 additions and 0 deletions
|
@ -146,6 +146,14 @@ gem "draper"
|
|||
|
||||
Then run `bundle` from the project directory.
|
||||
|
||||
### Run the draper:install command
|
||||
|
||||
This will create the `app/decorators` directory and the `ApplicationDecorator` inside it.
|
||||
|
||||
```
|
||||
rails generate drapper:install
|
||||
```
|
||||
|
||||
### Generate the Decorator
|
||||
|
||||
To decorate a model named `Article`:
|
||||
|
|
Loading…
Add table
Reference in a new issue