Greetings, I am having a hard time figuring out how to do this in haml:
<li class="folder <%= " selected" if @folder_id == folder.id %>"> It will add a selected class to the li element, only if a condition is met. - evgeny --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
