Skip to content

Instantly share code, notes, and snippets.

@chrise86
Forked from dcyoung-dev/active_link_to.rb
Created March 28, 2023 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrise86/8e09873359c1e6a12a1c25355999a335 to your computer and use it in GitHub Desktop.
Save chrise86/8e09873359c1e6a12a1c25355999a335 to your computer and use it in GitHub Desktop.
An `active_link_to` helper that adds the `.active` class and sets `aria-current="page"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment