Hi Everyone

I am a new user of Ruby and Rails, and would like some help with the
following problem.

I have created a navbar with a styled unordered list and I would like
to apply class="current" to the tab for the current page.

Currently I am using a large, cumbersome and ugly if..then block,
rendering the class="current" into the html and link_tos with
current_page?.

I am absolutely sure this is a fairly common task for many rails
developers, so common and easy in fact, that noone even bothers
mentioning it on the web (a quick reference to the fact that I have
unsuccessfully googled already).

Help will be rewarded with chunky bacon.
P&P Not included

Thanks
Marc

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to