Module: NavigationHelper

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

Instance Method Summary collapse

Instance Method Details

[ [‘Users’, user_path],

‘Roles’

]



8
9
10
# File 'app/helpers/kit/navigation_helper.rb', line 8

def breadcrumb
   Array(@breadcrumb).collect{|item| item.is_a?(Array) ? link_to(*item) : item}
end

Returns:

  • (Boolean)


12
13
14
# File 'app/helpers/kit/navigation_helper.rb', line 12

def breadcrumb?
  breadcrumb.empty?
end