Mercurial > zeropaste
annotate app/views/pastes/index.html.erb @ 13:33e8202c7e5d
Added example database.yml.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 26 Aug 2012 12:06:48 -0700 |
parents | 42de15334db1 |
children |
rev | line source |
---|---|
2 | 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 %> |