Last change
on this file since 263 was 60, checked in by KOBAYASHI, Shinji, 16 years ago |
add people scaffold
|
File size:
523 bytes
|
Line | |
---|
1 | <h1>Listing people</h1>
|
---|
2 |
|
---|
3 | <table>
|
---|
4 | <tr>
|
---|
5 | <th>Name</th>
|
---|
6 | <th>Birthday</th>
|
---|
7 | <th>Sex</th>
|
---|
8 | </tr>
|
---|
9 |
|
---|
10 | <% for person in @people %>
|
---|
11 | <tr>
|
---|
12 | <td><%=h person.name %></td>
|
---|
13 | <td><%=h person.birthday %></td>
|
---|
14 | <td><%=h person.sex %></td>
|
---|
15 | <td><%= link_to 'Show', person %></td>
|
---|
16 | <td><%= link_to 'Edit', edit_person_path(person) %></td>
|
---|
17 | <td><%= link_to 'Destroy', person, :confirm => 'Are you sure?', :method => :delete %></td>
|
---|
18 | </tr>
|
---|
19 | <% end %>
|
---|
20 | </table>
|
---|
21 |
|
---|
22 | <br />
|
---|
23 |
|
---|
24 | <%= link_to 'New person', new_person_path %>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.