19 lines
407 B
Plaintext
19 lines
407 B
Plaintext
|
<%= form_with model: [ @article, @article.comments.build ] do |form| %>
|
||
|
<p>
|
||
|
<%= form.label :commenter %><br>
|
||
|
<%= form.text_field :commenter %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= form.label :body %><br>
|
||
|
<%= form.text_area :body %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= form.label :status %><br>
|
||
|
<%= form.select :status, Visible::VALID_STATUSES, selected: 'public' %>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= form.submit %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
|