- if @user.logged_in? YOU ARE LOGGED IN - else LOG IN OR SIGN UP No end required. For future reference, this is covered in http://haml.hamptoncatlin.com/docs/ :-).
sbtodd wrote: > I could not find any example of how to replace something like > this that is common in RHTML > > <% if @user.logged_in? %> > YOU ARE LOGGED IN > <% else %> > LOG IN OR SIGN UP > <% end %> > > How can you do that with HAML?? > > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
