Created
December 29, 2008 22:40
-
-
Save patrickberkeley/41418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def link_to_with_current_class(name, path, cls='current') | |
| current_page?(path) ? (link_to name, path, :class => cls) : (link_to name, path) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment