Add comments'
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<div id="<%= dom_id comment %>">
|
||||
<%= comment.content %>
|
||||
- <%= time_tag comment.created_at %>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<%= form_with model: [ article, Comment.new ] do |form| %>
|
||||
Your comment:<br>
|
||||
<%= form.text_area :content, size: "20x5" %>
|
||||
<%= form.submit %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user