second attempt of making favorite people view sortable
This commit is contained in:
@@ -27,9 +27,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>Thumb</th>
|
||||
<th><%= link_to "First Name", :sort => "first_name" %></th>
|
||||
<th><%= link_to "Last Name", :sort => "last_name" %></th>
|
||||
<th><%= link_to "Registration Date", :sort => "created_at" %></th>
|
||||
<th><%= sortable "First Name", "first_name" %></th>
|
||||
<th><%= sortable "Last Name", "last_name" %></th>
|
||||
<th><%= sortable "Registration Date", "created_at" %></th>
|
||||
<th>Del</th>
|
||||
</tr>
|
||||
<% for person in @favorite_people %>
|
||||
<tr>
|
||||
@@ -51,6 +52,9 @@
|
||||
<td>
|
||||
<%= person['created_at'] %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to "X", {:action => "delete_person", :tiss_id => person['tiss_id']}, :method => 'delete' %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user