Skip to content

Instantly share code, notes, and snippets.

@firedev
Last active December 15, 2015 19:09
Show Gist options
  • Save firedev/5308768 to your computer and use it in GitHub Desktop.
Save firedev/5308768 to your computer and use it in GitHub Desktop.
Provides a `nav_link_to` view helper method that mimics `link_to` but adds a `selected` class if the link equals current page. Put into `intializers`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment