first commit
This commit is contained in:
17
app/views/articles/show.html.erb
Normal file
17
app/views/articles/show.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<h1><%= @article.title %></h1>
|
||||
|
||||
<p><%= @article.body %></p>
|
||||
|
||||
<ul>
|
||||
<li><%= link_to "Edit", edit_article_path(@article) %></li>
|
||||
<li><%= link_to "Destroy", article_path(@article), data: {
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure?"
|
||||
} %></li>
|
||||
</ul>
|
||||
|
||||
<h2>Comments</h2>
|
||||
<%= render @article.comments %>
|
||||
|
||||
<h2>Add a comment</h2>
|
||||
<%= render "comments/form" %>
|
||||
Reference in New Issue
Block a user