Sha256: 550208a9e287c9e640d9228f2befb3dbecdcaa33cbd22ff7c4d2498d339c6408

Contents?: true

Size: 723 Bytes

Versions: 84

Compression:

Stored size: 723 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 %>
  <% end %>
  <% f.fields_for :telephone do |child_form| %>
    <%= child_form.label :number %>
    <%= child_form.text_field :number %>
  <% end %>
  <% 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' %>
    <% end %>
  <% end %>
<% end %>

Version data entries

84 entries across 84 versions & 6 rubygems

Version Path
padrino-helpers-0.16.0.pre3 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.16.0.pre2 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.15.3 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.15.2 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.15.1 test/fixtures/markup_app/views/fields_for.erb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.15.0 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.4 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.3 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.12.9 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.2 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.13.3.4 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.1.1 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.1 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.0.2 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.0.1 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.0 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.0.rc2 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.14.0.rc1 test/fixtures/markup_app/views/fields_for.erb
padrino-helpers-0.13.3.3 test/fixtures/markup_app/views/fields_for.erb