lib/generators/skizmo/form/USAGE in formgen-0.1.0 vs lib/generators/skizmo/form/USAGE in formgen-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ Description: - Generates a form per usual but with fields_for for the has_many and belongs_to associations. + Generates a form per usual but with fields_for for the has_many and belongs_to associations that are "accepted_nested_attributes". If the fields are not accepted nested attributes, then they are selectable options, multi-select for has_many and single select for belongs_to. 'has_attached_file' will trigger the file_field input and create a multipart form. Example: rails generate skizmo:form Foo With Foo.rb (model like this): @@ -9,14 +9,17 @@ has_many :bars belongs_to :baz accepts_nested_attributes_for :bars accepts_nested_attributes_for :baz + + has_attached_file :image end This will create: public/javascripts/jquery.add_remove_links.js app/helpers/add_remove_links_helper.rb + app/helpers/foo_setup_helper.rb app/views/foos/new.html.erb app/views/foos/edit.html.erb app/views/foos/_form.html.erb app/views/foos/_bar_fields.html.erb app/views/foos/_baz_fields.html.erb