Sha256: 52d01eb71e702999e07cb93c521053b109d91cf4e0bba1071a4b14e87ce12256
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 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: (current_page ? "active" : "")) do link_to label, path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.0.0.pre.beta4 | app/helpers/renalware/navigation_helper.rb |