Sha256: 8902924de9a72dabe28477c1ebfac45454d7578ab9df7970a2b1f302757f0756
Contents?: true
Size: 792 Bytes
Versions: 37
Compression:
Stored size: 792 Bytes
Contents
NAME form - Formtastic form generator. DESCRIPTION Generates formtastic form code based on an existing model. By default the generated code will be printed out directly in the terminal, and also copied to clipboard. Can optionally be saved into partial directly. Required: 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". --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]
Version data entries
37 entries across 37 versions & 7 rubygems