Skip to content

Commit

Permalink
Add information about generation action with --method
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovanton committed Jan 30, 2016
1 parent 4483120 commit 79c7b6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/guides/command-line/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ If you wish to generate only the action, without the view and template, you can
% bundle exec hanami generate action web books#show --skip-view
```

If you wish to generate action with specific method, you can do that by using the `--method`.

```shell
% bundle exec hanami generate action web books#create --method=post
```

#### Route

The generated route is named after the controller name.
Expand Down

0 comments on commit 79c7b6a

Please sign in to comment.