Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tidy up view

  • Loading branch information...
commit 69e1a9dba89882ee272b9a4051a027bc5103f604 1 parent 2e916f8
Mike Bailey mbailey authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 app/views/volunteers/index.html.erb
6 app/views/volunteers/index.html.erb
@@ -14,15 +14,13 @@
<% for volunteer in @volunteers %>
- <td><%=h volunteer.first_name %> <%=h volunteer.last_name %></td>
+ <td><%= link_to h("#{volunteer.first_name} #{volunteer.last_name}"), volunteer %></td>
<td><%=h volunteer.suburb %></td>
<td><%=h volunteer.postcode %></td>
<td><%=h volunteer.can_keep_dogs %></td>
<td><%=h volunteer.can_keep_cats %></td>
<td><%=h volunteer.can_keep_other %></td>
- <td><%#= link_to 'Show', volunteer %></td>
- <td><%#= link_to 'Edit', edit_volunteer_path(volunteer) %></td>
- <td><%#= link_to 'Destroy', volunteer, :confirm => 'Are you sure?', :method => :delete %></td>
+ <td><%= link_to 'Destroy', volunteer, :confirm => 'Are you sure?', :method => :delete if params[:d] %></td>
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.