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