Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a note on the --controller option in form generator USAGE.

  • Loading branch information...
commit 0fc9357e00029e08ea0c61870ff9668f9dfad35f 1 parent a9651db
Jonas Grimfelt grimen authored committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 generators/form/USAGE
5 generators/form/USAGE
View
@@ -8,8 +8,9 @@ DESCRIPTION
ExistingModelName - The name of an existing model for which the generator should generate form code.
Options:
- --haml Generate HAML instead of ERB.
- --partial Generate a form partial in the model views path, i.e. "_form.html.erb" or _form.html.haml".
+ --haml Generate HAML instead of ERB.
+ --partial Generate a form partial in the model views path, i.e. "_form.html.erb" or _form.html.haml".
+ --controller PATH Generate for custom controller/view path - in case model and controller namespace is different, i.e. "admin/posts".
EXAMPLE
./script/generate form ExistingModelName [--haml] [--partial]
Please sign in to comment.
Something went wrong with that request. Please try again.