Sha256: 2a3a7443400b36dd8cc642f9079d78bdbe4bac49a0d37ca814ab2c84c820268c

Contents?: true

Size: 240 Bytes

Versions: 7

Compression:

Stored size: 240 Bytes

Contents

.fields
<% @attrs.each do |att| -%>
  .field
    = f.label :<%= att %>
    = f.<%= attr_form_method(@kls, att) %> :<%= att %>
<% end -%>
<% if @assoc == :has_many and options.javascript? -%>
  = link_to_remove_fields "remove", f
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
formgen-0.4.1 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.4.0 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.3.4 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.3.3 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.3.2 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.3.1 lib/generators/skizmo/form/templates/_nested_fields.html.haml
formgen-0.3.0 lib/generators/skizmo/form/templates/_nested_fields.html.haml