Chris,
Awesome. Thanks for the help, that worked perfectly!
On Nov 21, 1:14 pm, Chris Eppstein <[EMAIL PROTECTED]> wrote:
> This should work:
>
> %li{:class => ('active' if @my_account)}= link_to "My Account",
> account_path(@my_account)
>
> chris
>
> On Nov 21, 8:13 am, deadwards <[EMAIL PROTECTED]> wrote:
>
> > I am relatively new to Haml, and have a question. Is it possible to
> > include rails code inside of an html tag?
>
> > Here is the erb code that I'm trying to convert to Haml:
> > <code><pre>
> > <li<%= " class='active'" if @my_account %>><%= link_to "My Account",
> > account_path(@my_account) %></span></li>
> > </pre></code>
>
> > Thanks for any help.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---