Debian Codegraph @

demo/kitchen-sink/docs/html_ruby.erb

raw
1 <h1>Listing Books</h1>
2
3 <table>
4 <tr>
5 <th>Title</th>
6 <th>Summary</th>
7 <th></th>
8 <th></th>
9 <th></th>
10 </tr>
11
12 <% @books.each do |book| %>
13 <tr>
14 <%# comment %>
15 <td><%= book.title %></td>
16 <td><%= book.content %></td>
17 <td><%= link_to 'Show', book %></td>
18 <td><%= link_to 'Edit', edit_book_path(book) %></td>
19 <td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
20 </tr>
21 <% end %>
22 </table>
23
24 <br />
25
26 <%= link_to 'New book', new_book_path %>