Add comments'

This commit is contained in:
Ryan W
2021-12-16 14:33:08 -08:00
parent 4edabe6ab1
commit 3a146f7f60
15 changed files with 97 additions and 5 deletions
+4
View File
@@ -0,0 +1,4 @@
<div id="<%= dom_id comment %>">
<%= comment.content %>
- <%= time_tag comment.created_at %>
</div>
+5
View File
@@ -0,0 +1,5 @@
<%= form_with model: [ article, Comment.new ] do |form| %>
Your comment:<br>
<%= form.text_area :content, size: "20x5" %>
<%= form.submit %>
<% end %>