Sha256: b911c201afddc8240fdc1ef0be0ff7d828770fb398521e960bf39e18c300acd8

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

.clean-text
  = form_for @resource do |f|
    = f.fields_for :roles, dynamic: true do |rf|
      clean text

    = f.add_fields_link :roles, 'Add role'

.clean-text-with-remove-link
  = form_for @resource do |f|
    = f.fields_for :roles, dynamic: true do |rf|
      clean text
      = rf.remove_fields_link 'Remove role'

    = f.add_fields_link :roles, 'Add role'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynamic-fields-for-1.2.1 spec/rails_app/app/views/users/edit_with_clean_text.html.haml
dynamic-fields-for-1.2.0 spec/rails_app/app/views/users/edit_with_clean_text.html.haml
dynamic-fields-for-1.1.0 spec/rails_app/app/views/users/edit_with_clean_text.html.haml
dynamic-fields-for-1.0.4 spec/rails_app/app/views/users/edit_with_clean_text.html.haml