module LybSidebar::Helper
Public Instance Methods
tag_filter(model = nil, filters = nil, scope = :tagged_with)
click to toggle source
Tag support
# File lib/lyb_sidebar/helper.rb, line 4 def tag_filter(model = nil, filters = nil, scope = :tagged_with) model ||= controller_name.singularize.camelize.constantize filters ||= model.top_tags render 'layouts/tag_filter', :filters => filters, :scope => scope end