box-o-sand/RubyFun/rails/gerbil/app/views/people/index.html.erb
Dan Buch 0a9428093c Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'
git-subtree-dir: RubyFun
git-subtree-mainline: a04a502787
git-subtree-split: b01c682613
2013-01-09 23:50:14 -05:00

28 lines
563 B
Plaintext

<h1>Listing people</h1>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Zipcode</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @people.each do |person| %>
<tr>
<td><%= person.name %></td>
<td><%= person.age %></td>
<td><%= person.zipcode %></td>
<td><%= link_to 'Show', person %></td>
<td><%= link_to 'Edit', edit_person_path(person) %></td>
<td><%= link_to 'Destroy', person, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Person', new_person_path %>