Module: Renalware::NavigationHelper
- Defined in:
- app/helpers/renalware/navigation_helper.rb
Instance Method Summary collapse
-
#sub_nav_item(label, path) ⇒ Object
Path here must be already resolved to a string using url_for e.g.
Instance Method Details
#sub_nav_item(label, path) ⇒ Object
Path here must be already resolved to a string using url_for e.g. Engine.routes.url_for(.., action: .., only_path: true)
7 8 9 10 11 12 |
# File 'app/helpers/renalware/navigation_helper.rb', line 7 def sub_nav_item(label, path) current_page = current_page?(path) content_tag(:dd, class: ("active" if current_page)) do link_to label, path end end |