Sha256: 127990390221c79f46f7cf3a062b969579af1b20df5be69a892cfb877e587f7b
Contents?: true
Size: 378 Bytes
Versions: 2
Compression:
Stored size: 378 Bytes
Contents
module Admin::BaseHelper def breadcrumb_nav category ancestor(category) + link_to(category.name, :id => category) end private def ancestor(category, hide_last = false) if category.parent ancestor(category.parent) + link_to(category.parent.name, :id => category.parent) + (hide_last ? '' : ' > ') else "" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railscart-0.0.1 | starter-app/vendor/plugins/railscart/app/helpers/admin/base_helper.rb |
railscart-0.0.2 | starter_app/vendor/plugins/railscart/app/helpers/admin/base_helper.rb |