This HAML code:
%ul
  %li= link_to("Account", contacts_path)
  %li= nil
  %li= link_to("Users", users_path) if current_admin?
  %li= link_to("Logout #{current_user.login}", session_path, :method
=> :delete) if current_user?

Generates invalid XHTML code:
<ul>
  <li><a href="/contacts">Account</a></li>
  <li>  <li>  <li></ul>

Both #current_admin? and #current_user? return false, thereby
returning nil.  Can anyone else confirm ?

This is with svn://hamptoncatlin.com/haml/trunk at r588.

Thanks !
François


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to