Sha256: 33bdae8a57f04071c17324156ef556407106b23d588541a0d76e66e16a634889

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

<h1>New thread</h1>

<%= simple_form_for(@thread, url: form_path, remote: Discussion.ajaxify) do |f| %>
    <%= f.error_notification %>

    <%= field_set_tag do %>
        <%= f.input :subject %>
        <%= f.simple_fields_for :comments, [@thread.comments.build] do |mf| %>
            <%= render :partial => "discussion/comments/form", locals: {f: mf} %>
        <% end %>
    <% end %>

    <div class="form-actions">
      <%= link_to_threads link_text: "Cancel" %> | <%= f.submit %>
    </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discussion-0.0.1 app/views/discussion/threads/_form.html.erb