OSDN Git Service

ご恩登録機能のCRUDをscaffoldベースで生成し実装
[on-kiroku/go_on_kiroku_tyou.git] / app / views / goons / index.html.erb
1 <h1>Listing goons</h1>
2
3 <table>
4   <tr>
5     <th>Title</th>
6     <th>Who</th>
7     <th>When</th>
8     <th>Where</th>
9     <th>Description</th>
10     <th></th>
11     <th></th>
12     <th></th>
13   </tr>
14
15 <% @goons.each do |goon| %>
16   <tr>
17     <td><%= goon.title %></td>
18     <td><%= goon.who %></td>
19     <td><%= goon.when %></td>
20     <td><%= goon.where %></td>
21     <td><%= goon.description %></td>
22     <td><%= link_to 'Show', goon %></td>
23     <td><%= link_to 'Edit', edit_goon_path(goon) %></td>
24     <td><%= link_to 'Destroy', goon, :confirm => 'Are you sure?', :method => :delete %></td>
25   </tr>
26 <% end %>
27 </table>
28
29 <br />
30
31 <%= link_to 'New Goon', new_goon_path %>