rails-refresher/app/views/comments/_form.html.erb

19 lines
407 B
Plaintext
Raw Permalink Normal View History

2024-07-05 01:00:08 +00:00
<%= 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 %>