Skip to content

Instantly share code, notes, and snippets.

@MaherSaif
Forked from dcyoung-dev/active_link_to.rb
Created March 26, 2023 08:13
Show Gist options
  • Save MaherSaif/fed42ecd6ccd78eab4b14a4bddaac9b5 to your computer and use it in GitHub Desktop.
Save MaherSaif/fed42ecd6ccd78eab4b14a4bddaac9b5 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