MongoDB-Uppgift/app/views/posts/edit.html.erb
2025-05-23 14:14:30 +02:00

12 lines
207 B
Text

<% content_for :title, "Editing post" %>
<h1>Editing post</h1>
<%= render "form", post: @post %>
<br>
<div>
<%= link_to "Show this post", @post %> |
<%= link_to "Back to posts", posts_path %>
</div>