Sha256: f356660896f069ec8dec96f1c2291376d57e1c0045a35d81ce707d5f4fa50ef4

Contents?: true

Size: 720 Bytes

Versions: 71

Compression:

Stored size: 720 Bytes

Contents

#<%= nested_resource.plural_name %>
  = f.simple_fields_for :<%= nested_resource.plural_name %>, f.object.<%= nested_resource.plural_name %> do |fields|
    = render '<%= [resource.namespace.presence, nested_resource.plural_name].compact.join('/') %>/fields', f: fields

  - if can? :update, f.object
    = f.error :<%= nested_resource.plural_name %>, class: 'alert alert-danger'
    .links
      = link_to_add_association(f, :<%= nested_resource.plural_name %>, partial: '<%= [resource.namespace.presence, nested_resource.plural_name].compact.join('/') %>/fields') do
        %button.btn.btn-success
          %span.glyphicon.glyphicon-plus-sign
          Add another <%= nested_resource.name.to_s.titleize.downcase %>

Version data entries

71 entries across 68 versions & 1 rubygems

Version Path
effective_developer-0.8.5 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.8.4 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.8.3 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.8.2 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.8.1 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.8.0 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.8 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.7 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.6 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.5 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.4 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.3 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.2 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.1 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.7.0 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.6.17 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.6.16 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.6.15 lib/scaffolds/fields/_field_nested_resource.html.haml
effective_developer-0.6.14 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.6.13 lib/scaffolds/forms/fields/_field_nested_resource.html.haml