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.4.15 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.14 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.13 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.12 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.11 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.10 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.9 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.8 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.7 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.6 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.5 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.4 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.3 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.2 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.1 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.4.0 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.3.0 lib/scaffolds/simple_form/fields/_field_nested_resource.html.haml
effective_developer-0.3.0 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.2.14 lib/scaffolds/forms/fields/_field_nested_resource.html.haml
effective_developer-0.2.14 lib/scaffolds/simple_form/fields/_field_nested_resource.html.haml