On 10/5/07, Joe Van Dyk <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We're trying to do something like:
>
> %li.current= link_to_unless_current "All Activity",
> user_history_path(@user)
>
> But have the .current class given to the <li> element only if they are
> on user_history_path(@user).

If you're using this a lot (or more than a little), it might be worth
writing a helper to handle it. It would keep your views nice and
clean.

-- 
Chris Boone, Hypsometry
http://hypsometry.com/

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