app/helpers/application_helper.rb
# Expand the breadcrumbs from the controller into a breadcrumbs bar
Expand the breadcrumbs from the controller into a breadcrumbs bar
Expand the breadcrumbs from the controller into a breadcrumbs bar
def show_breadcrumbs
    rval = ""
    breadcrumbs.each do |x|
      rval += "&nbsp;|&nbsp;" if rval.length > 0
      if x[:link].nil?
        rval += x[:title]
      else
        rval += "<a href='#{x[:link]}'>#{x[:title]}</a>"
      end
    end
    rval.html_safe
  end
def show_breadcrumbs rval = "" breadcrumbs . each do | x | rval += "&nbsp;|&nbsp;" if rval . length > 0 if x [ :link ] . nil? rval += x [ :title ] else rval += "<a href='#{x[:link]}'>#{x[:title]}</a>" end end rval . html_safe end
Expand the breadcrumbs from the controller into a breadcrumbs bar
Expand the breadcrumbs from the controller into a breadcrumbs bar