Add posts test

This commit is contained in:
hannah.dagemark 2025-05-23 14:14:30 +02:00
commit 76229c8cc5
17 changed files with 278 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<p style="color: green"><%= notice %></p>
<% content_for :title, "Posts" %>
<h1>Posts</h1>
<div id="posts">
<% @posts.each do |post| %>
<%= render post %>
<p>
<%= link_to "Show this post", post %>
</p>
<% end %>
</div>
<%= link_to "New post", new_post_path %>