You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
518 B
Plaintext
26 lines
518 B
Plaintext
10 years ago
|
<h1>Listing Books</h1>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Title</th>
|
||
|
<th>Summary</th>
|
||
|
<th></th>
|
||
|
<th></th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
|
||
|
<% @books.each do |book| %>
|
||
|
<tr>
|
||
|
<%# comment %>
|
||
|
<td><%= book.title %></td>
|
||
|
<td><%= book.content %></td>
|
||
|
<td><%= link_to 'Show', book %></td>
|
||
|
<td><%= link_to 'Edit', edit_book_path(book) %></td>
|
||
|
<td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
|
||
|
<br />
|
||
|
|
||
|
<%= link_to 'New book', new_book_path %>
|