One solution could be :
%ul
%li= link_to("Account", contacts_path)
- if current_admin?
%li= link_to("Users", users_path)
- if current_user?
%li= link_to("Logout #{current_user.login}", session_path, :method
=> :delete)
Regards,
Brett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---