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
-
#breadcrumb_key ⇒ Symbol
Generates a key for breadcrumbs based on the normalized controller path and action name.
Instance Method Details
#breadcrumb_key ⇒ Symbol
Generates a key for breadcrumbs based on the normalized controller path and action name.
12 13 14 |
# File 'lib/breadcrumb_key/helper.rb', line 12 def "#{normalized_controller_path}_#{normalized_action_name}".to_sym end |