Module: Navigator::NavigationHelper

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

Overview

Navigation helper methods for the view layer.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.current_pathObject



14
# File 'app/helpers/navigator/navigation_helper.rb', line 14

def current_path = request.env["PATH_INFO"]


16
# File 'app/helpers/navigator/navigation_helper.rb', line 16

def navigation_activator = Navigator::TagActivator.new(search_value: current_path)

Instance Method Details



6
7
8
9
10
# File 'app/helpers/navigator/navigation_helper.rb', line 6

def navigation(tag = "ul", attributes: {}, activator: navigation_activator, &)
  Navigator::Menu.new(self, tag:, attributes:, activator:, &)
                 .render
                 .then { |html| raw html }
end