Sha256: c03f05bc8819fc86196a272cc62f045477f73720850cb1613a4d62a1cc9852ac
Contents?: true
Size: 382 Bytes
Versions: 34
Compression:
Stored size: 382 Bytes
Contents
module Renalware module NavigationHelper # Path here must be already resolved to a string using url_for # e.g. Engine.routes.url_for({controller: .., action: .., only_path: true}) 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 end end
Version data entries
34 entries across 34 versions & 1 rubygems