Module: Railsstrap::BreadcrumbsHelper
- Defined in:
- app/helpers/railsstrap/breadcrumbs_helper.rb
Instance Method Summary collapse
-
#render_breadcrumbs(divider = '/', options = {}, &block) ⇒ Object
TODO: make divider optional.
Instance Method Details
#render_breadcrumbs(divider = '/', options = {}, &block) ⇒ Object
TODO: make divider optional
4 5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/railsstrap/breadcrumbs_helper.rb', line 4 def (divider = '/', ={}, &block) = { :class => '', :item_class => '', :divider_class => '', :active_class => 'active' }.merge() #TODO: is default_options merged in and then unused? content = render :partial => 'railsstrap/breadcrumbs', :layout => false, :locals => { :divider => divider, options: } if block_given? capture(content, &block) else content end end |