Sha256: b9f83322f2b44962c3030abea3929fa9b0fa0d3db6681c6f5a85612a5f23abeb

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

<%= form_for(@tasklist) do |f| %>
  <% if @tasklist.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@tasklist.errors.count, "error") %> prohibited this tasklist from being saved:</h2>

      <ul>
      <% @tasklist.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :title -%>
    <%= f.text_field :title -%>
  </div>

  <%= f.fields_for :tasks, @tasklist.tasks do |ff| -%>
    <%= render "task_fields", f: ff -%>
  <% end -%>

  <div class="field">
    <%= link_to_add_fields "add a task", f, :tasks -%>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery_dynamic_fields-0.0.4 spec/dummy/app/views/tasklists/_form.html.erb