Module: Crumby::Helper::ViewHelper

Defined in:
lib/crumby/helper/view.rb

Overview

view helper

Instance Method Summary collapse

Instance Method Details

#crumby(options) ⇒ Object #crumby(scope, options) ⇒ Object

render breadcrumb

Overloads:

  • #crumby(options) ⇒ Object

    Parameters:

    • options (Hash)
    • options (Hash)

      passthrough to renderer

  • #crumby(scope, options) ⇒ Object

    Parameters:

    • scope (Symbol, String)

      scope of breadcrumb

    • options (Hash)

      passthrough to renderer

See Also:



14
15
16
17
18
# File 'lib/crumby/helper/view.rb', line 14

def crumby(*args)
  options = args.extract_options!
  scope = args.first || :default
  crumby_trail(scope).render(self, options)
end