_comment-form.html.erb 347 Bytes
Newer Older
1
    <%= form_with(model: comment, url: comments_path, method: "post") do |form| %>
simon's avatar
simon committed
2
3
4
5
6
7
8
      <div class="field">
        <%= form.text_area :content %>
      </div>
      <%= form.hidden_field :post_id, value: post.id %>
      <div class="actions">
          <%= form.submit 'Comment', :class => 'submit extra-small' %>
      </div>
9
  <% end %>
simon's avatar
simon committed
10
11
12
13