Module: LinkHelper
- Defined in:
- app/helpers/link_helper.rb
Instance Method Summary collapse
-
#nav_link_to(name, url) ⇒ Object
helper wrapper around link_to that inserts visual and screen reader info for navigation links.
Instance Method Details
#nav_link_to(name, url) ⇒ Object
helper wrapper around link_to that inserts visual and screen reader info for navigation links
4 5 6 7 8 |
# File 'app/helpers/link_helper.rb', line 4 def nav_link_to(name, url) link_to(name, url, class: link_class(url), 'aria-current': aria_current?(url)) end |