<%= @user.user_name %>'s Profile
<%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(@user.email) + '?s=100&d=mm' %>
Email:
<%= @user.email %>
Preferred name:
<%= @user.user_name %>
Relationship Status:
too single
<%= form_for @user do |f| %>
<%= f.submit "Add Username", :class => 'signup' %>
<% end %>
Recent Tournaments Played
<% @user.tournaments_played.each do |t| %>
- <%= t.name %>
<% end %>
Recent Tournaments Hosted
<% if @user.tournaments_hosted.count == 0 %>
<%= @user.user_name %> has never hosted a tournament
<%end %>
<% @user.tournaments_hosted.each do |t| %>
- <%= t.name %>
<% end %>
<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Users', users_path %>