From 79c7b6a9bcef610e9fb6142ed522c0c671506006 Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Sat, 30 Jan 2016 13:34:34 +0300 Subject: [PATCH] Add information about generation action with --method --- source/guides/command-line/generators.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/guides/command-line/generators.md b/source/guides/command-line/generators.md index 5b1f5d998..933731b0c 100644 --- a/source/guides/command-line/generators.md +++ b/source/guides/command-line/generators.md @@ -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.