Module: TwitterBreadcrumbsHelper

Defined in:
app/helpers/twitter_breadcrumbs_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_breadcrumbs(divider = '/', options = {}, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/helpers/twitter_breadcrumbs_helper.rb', line 2

def render_breadcrumbs(divider = '/', options={}, &block)
  default_options = { :class => '', :item_class => '', :divider_class => '', :active_class => 'active' }.merge(options)
  content = render :partial => 'twitter-bootstrap/breadcrumbs', :layout => false, :locals => { :divider => divider, options: options }
  if block_given?
    capture(content, &block)
  else
    content
  end
end