Sha256: 2318894a7222340a7dc9a77f66596867d3ed8388eef0aa36d08b1e60d8066feb

Contents?: true

Size: 594 Bytes

Versions: 39

Compression:

Stored size: 594 Bytes

Contents

- @user = MarkupUser.new
- form_for @user , '/demo1', :id => 'demo-fields-for' do |f|
  = f.text_field :gender
  - fields_for @user.permission do |permission|
    = permission.check_box :can_edit
    = permission.check_box :can_delete
  - f.fields_for :telephone do |child_form|
    = child_form.label :number
    = child_form.text_field :number
  - f.fields_for :addresses do |child_form|
    = child_form.label :name
    = child_form.text_field :name
    - unless child_form.object.new_record?
      = child_form.check_box '_destroy'
      = child_form.label '_destroy', :caption => 'Remove'

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
middleman-core-3.2.2 lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.2.1 lib/vendored-middleman-deps/padrino-helpers-0.11.4/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.2.0 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.6 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.11.4 test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.5 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.11.3 test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.4 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.3 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.2 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.1 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.0 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.0.rc.4 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.0.rc.3 lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.1.0.rc.2 lib/vendored-middleman-deps/padrino-helpers-0.10.7/test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.11.2 test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.11.1 test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.11.0 test/fixtures/markup_app/views/fields_for.haml
padrino-helpers-0.10.7 test/fixtures/markup_app/views/fields_for.haml
middleman-core-3.0.0.beta.2 lib/middleman-core/vendor/padrino-helpers-0.10.6/test/fixtures/markup_app/views/fields_for.haml