Module: Renalware::NavigationHelper

Defined in:
app/helpers/renalware/navigation_helper.rb

Instance Method Summary collapse

Instance Method Details

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)
  (:dd, class: ("active" if current_page)) do
    link_to label, path
  end
end