Module: BreadcrumbKey::Helper

Defined in:
lib/breadcrumb_key/helper.rb

Overview

The Helper module provides utility methods for generating breadcrumb keys based on the current controller and action.

Instance Method Summary collapse

Instance Method Details

Generates a key for breadcrumbs based on the normalized controller path and action name.

Returns:

  • (Symbol)

    the generated breadcrumb key



12
13
14
# File 'lib/breadcrumb_key/helper.rb', line 12

def breadcrumb_key
  "#{normalized_controller_path}_#{normalized_action_name}".to_sym
end