Module: LinkHelper
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
6 7 8 9 10 |
# File 'app/helpers/link_helper.rb', line 6 def nav_link_to(name, url) link_to(name, url, class: link_class(url), 'aria-current': aria_current?(url)) end |