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