% for membership in Membership.find_all_by_user_id(@user.id) %>
<%= link_to(membership.group.name, :action => 'showGroup', :id => membership.group) %>