Permalink
Find file
285c93c Sep 6, 2012
16 lines (15 sloc) 531 Bytes
<div class="friend" id="<%= friend.id %>">
<div class="front">
<%= link_to friend, class: 'pic-link' do %>
<%= image_tag friend.avatar.url(:square) %>
<% end %>
</div>
<div class="back">
<span class="friend-name"><%= friend.name %></span>
<div class="actions">
<%= link_to 'Show', friend %>
<%= link_to 'Edit', edit_friend_path(friend) %>
<%= link_to 'Delete', friend, confirm: 'Are you sure you want to lose a friend?', method: :delete, class: 'destroy' %>
</div>
</div>
</div>