diff --git a/app/views/awesome/posts/_post.html.erb b/app/views/awesome/posts/_post.html.erb index 95a5585..434dbd5 100644 --- a/app/views/awesome/posts/_post.html.erb +++ b/app/views/awesome/posts/_post.html.erb @@ -1,7 +1,5 @@ -<% @posts.each do |post| %> - - <%= post.title %> - <%= post.content %> - <%= link_to 'Show', post %> - -<% end %> + + <%= post.title %> + <%= post.content %> + <%= link_to 'Show', post %> + diff --git a/app/views/posts/_post.html.erb b/app/views/posts/_post.html.erb index 95a5585..434dbd5 100644 --- a/app/views/posts/_post.html.erb +++ b/app/views/posts/_post.html.erb @@ -1,7 +1,5 @@ -<% @posts.each do |post| %> - - <%= post.title %> - <%= post.content %> - <%= link_to 'Show', post %> - -<% end %> + + <%= post.title %> + <%= post.content %> + <%= link_to 'Show', post %> +