Basis of rails-driven app for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
497 B

  1. <% title "People" %>
  2. <table>
  3. <tr>
  4. <th>Firstname</th>
  5. <th>Lastname</th>
  6. </tr>
  7. <% for person in @people %>
  8. <tr>
  9. <td><%=h person.firstname %></td>
  10. <td><%=h person.lastname %></td>
  11. <td><%= link_to "Show", person %></td>
  12. <td><%= link_to "Edit", edit_person_path(person) %></td>
  13. <td><%= link_to "Destroy", person, :confirm => 'Are you sure?', :method => :delete %></td>
  14. </tr>
  15. <% end %>
  16. </table>
  17. <p><%= link_to "New Person", new_person_path %></p>