app/helpers/application_helper.rb
# Generate the parent breadcrumb with recusive
Generate the parent breadcrumb with recusive
Generate the parent breadcrumb with recusive
def parent_breadcrumbs_gallery(gallery)
    breadcrumbs = ""
    unless gallery.parent.nil?
      breadcrumbs += parent_breadcrumbs_gallery(gallery.parent)
      breadcrumbs += content_tag(:label, " > ")
    end
    breadcrumbs += link_to(gallery.name, gallery_path(gallery),
      :class => (@breadcrumb == gallery ? 'end-breadcrumb' : 'middle-breadcrumb'))
  end
def parent_breadcrumbs_gallery ( gallery ) breadcrumbs = "" unless gallery . parent . nil? breadcrumbs += parent_breadcrumbs_gallery ( gallery . parent ) breadcrumbs += content_tag ( :label , " > " ) end breadcrumbs += link_to ( gallery . name , gallery_path ( gallery ) , :class => ( @breadcrumb == gallery ? 'end-breadcrumb' : 'middle-breadcrumb' ) ) end
Generate the parent breadcrumb with recusive
Generate the parent breadcrumb with recusive
gallery
<not_specific>