comparison app/views/pastes/index.html.erb @ 2:42de15334db1

Added the pastes.
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 11:28:23 -0700
parents
children
comparison
equal deleted inserted replaced
1:49c0949ee47e 2:42de15334db1
1 <h1>Listing pastes</h1>
2
3 <table>
4 <tr>
5 <th>Id</th>
6 <th>Paste</th>
7 <th></th>
8 <th></th>
9 </tr>
10
11 <% @pastes.each do |paste| %>
12 <tr>
13 <td><%= link_to paste.id, paste %></td>
14 <td><%= paste.paste %></td>
15 <td><%= link_to 'Edit', edit_paste_path(paste) %></td>
16 <td><%= link_to 'Destroy', paste, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
17 </tr>
18 <% end %>
19 </table>
20
21 <br />
22
23 <%= link_to 'New Paste', new_paste_path %>