Sha256: 428f614a6387a64c9741fc84bf48feaa68114a8e16957dac5949d1aabadf0aea

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

= form_for @resource do |f|
  = f.text_field :user_name

  .fields_container
    = f.fields_for :roles, dynamic: true do |rf|
      = rf.text_field :role_name, class: 'role_name'
      = rf.remove_fields_link 'Remove role', class: 'remove_link'

  = f.add_fields_link :roles, 'Add role'

  = f.submit

#event_catcher

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamic-fields-for-1.2.1 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.2.0 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.1.0 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.0.4 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.0.3 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.0.2 spec/rails_app/app/views/users/events.html.haml
dynamic-fields-for-1.0.1 spec/rails_app/app/views/users/events.html.haml