提交 057de4f7 编写于 作者: E Eileen M. Uchitelle 提交者: GitHub

Merge pull request #30616 from yhirano55/update_layouts_and_rendering

Update Layouts and Rendering in Rails [ci skip]
...@@ -71,23 +71,25 @@ If we want to display the properties of all the books in our view, we can do so ...@@ -71,23 +71,25 @@ If we want to display the properties of all the books in our view, we can do so
<h1>Listing Books</h1> <h1>Listing Books</h1>
<table> <table>
<tr> <thead>
<th>Title</th> <tr>
<th>Summary</th> <th>Title</th>
<th></th> <th>Content</th>
<th></th> <th colspan="3"></th>
<th></th> </tr>
</tr> </thead>
<% @books.each do |book| %> <tbody>
<tr> <% @books.each do |book| %>
<td><%= book.title %></td> <tr>
<td><%= book.content %></td> <td><%= book.title %></td>
<td><%= link_to "Show", book %></td> <td><%= book.content %></td>
<td><%= link_to "Edit", edit_book_path(book) %></td> <td><%= link_to "Show", book %></td>
<td><%= link_to "Remove", book, method: :delete, data: { confirm: "Are you sure?" } %></td> <td><%= link_to "Edit", edit_book_path(book) %></td>
</tr> <td><%= link_to "Destroy", book, method: :delete, data: { confirm: "Are you sure?" } %></td>
<% end %> </tr>
<% end %>
</tbody>
</table> </table>
<br> <br>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册