rails-refresher/app/views/comments/_form.html.erb
Tyrel Souza 8a91d51c39
finish
2024-07-04 21:00:08 -04:00

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 %>