Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1> Nuestro Blog </h1>
- <% @posts.each do |post| %>
- <h2><%= link_to post.title, post %></h2>
- <p> <%= post.content %> </p>
- <p> <%= link_to "Editar", edit_post_path(post) %> |
- <%= link_to "Borrar", post, :confirm => "Estas seguro?", :method => :delete %>
- </p>
- <hr />
- <% end %>
- <p><%= link_to "Agregar nuevo post", new_post_path %></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement