<%= form_tag :controller => "users", :action => "logout" do %>
  • <%= link_to 'Profile', edit_user_path(cuser) %>
  • <%= link_to 'Agenda', "/users/agenda/#{cuser.id}" %>
  • <%= link_to 'PMs', messages_path() %> <% if c = cuser.new_messages.count > 0 %> (<%= cuser.new_messages.count %>) <% end %>
  • <%= link_to_function "Logout", '$(this).closest("form").submit();' %>
  • <% end %>