summaryrefslogtreecommitdiff
path: root/app/views/person/list.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/person/list.rhtml')
-rw-r--r--app/views/person/list.rhtml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/person/list.rhtml b/app/views/person/list.rhtml
new file mode 100644
index 0000000..37b8128
--- /dev/null
+++ b/app/views/person/list.rhtml
@@ -0,0 +1,20 @@
+
+<%= render :partial => "person/nav" %>
+<h1>Personen</h1>
+<table>
+ <th>Nickname</th>
+ <th>Email</th>
+ <th>Tel.</th>
+
+<% @persons.each do |person| %>
+ <tr>
+ <td><%= person.nick %></td>
+ <td><%= mail_to person.email, person.email, :encode => "hex" %></td>
+ <td><%= person.tel %></td>
+ <td><%= link_to 'Show', :action => 'show', :id => person %></td>
+ <td><%= link_to 'Edit', :action => 'edit', :id => person %></td>
+ <td><%= link_to 'Destroy', { :action => 'destroy', :id => person }, :confirm => 'Are you sure?', :post => true %></td>
+ </tr>
+<% end %>
+</table>
+