Created
April 27, 2018 10:49
-
-
Save swmcc/54c22a55104b731590aff08543775d1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @posts.each do |post| %> | |
<h1><%= link_to "post.title", post %></h1> | |
<p><%= post.content %></p> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<%= @post.title %>
<%= @post.content %>
<%= link_to "Edit", edit_post_path(@post) %> <%= link_to "Delete", @post, method: :delete, data: { confirm: "Are you sure?" %>