Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f258af4980
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.586 kB
<div class="page-header">
<h1><%= @user.username %>
<%= link_to 'Edit Account', edit_user_registration_path, :class => "btn btn-primary" %></h1>
</div>
<p>a member for <%= time_ago_in_words(@user.created_at) %></p>
<h2>Friends</h2>
<ul>
<% for friend in @user.friends %>
<li>
<%# !! move queries to controller %>
<% friend_user = User.find(friend.friend_id) %>
<%= link_to friend_user.username, user_show_url(:id => friend_user.id) %>
<%= link_to 'Remove', user_del_friend_url(:id => friend.id), :class => "btn btn-mini btn-danger" %>
</li>
<% end %>
</ul>
Jump to Line
Something went wrong with that request. Please try again.