Permalink
Browse files

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

  • Loading branch information...
1 parent a9651db commit 0fc9357e00029e08ea0c61870ff9668f9dfad35f @grimen grimen committed with Dec 3, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 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]

0 comments on commit 0fc9357

Please sign in to comment.