Sha256: 288baffe93ccd4a778097702450e51cc31f0a5c2f92d6a5170594f6bac3f1035

Contents?: true

Size: 552 Bytes

Versions: 21

Compression:

Stored size: 552 Bytes

Contents

<%= nested_form_for @company do |f| -%>
  <%= f.text_field :name %>
  <%= f.fields_for :project do |pf| -%>
    <%= pf.text_field :name %>
    <%= pf.fields_for :tasks do |tf| -%>
      <%= tf.text_field :name %>
      <%= tf.fields_for :milestones do |mf| %>
        <%= mf.text_field :name %>
        <%= mf.link_to_remove 'Remove milestone' %>
      <% end %>
      <%= tf.link_to_add 'Add new milestone', :milestones %>
      <%= tf.link_to_remove 'Remove' %>
    <% end -%>
    <%= pf.link_to_add 'Add new task', :tasks %>
  <% end -%>
<% end -%>

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
nested_form-0.3.2 spec/dummy/app/views/companies/new.html.erb