link_to_unless_current

Jeff Casimir
Fri, 05 Aug 2005 22:41:09 -0000

Afternoon all,

I am working on a nav menu using the link_to_unless_current helper.  I
am trying to differentiate between the links and non-links using CSS.  I
found an old thread (Feb 2005, [1]) discussing the same functionality,
but the answer seems a little hack-ish.  It would seem ideal to me to be
able to specify two ":class =>" designations, one for when the
subject
is linked, one for when it''s not.

Thoughts?

-Jeff

[1]: http://wrath.rubyonrails.org/pipermail/rails/2005-February/002647.html
--
Jeff Casimir
Author, CommonText Literacy Project: http://www.commontext.com
Teacher, César Chávez PCHS: http://www.cesarchavezhs.org