Displaying 1 result from an estimated 1 matches for "tag_counts_on".
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
...cts_as_taggable_on
I''ve generated the migration and ran it, I can add tags through my
edit view, and I can view them either from the console or as a simple
list in my index.
"include ActsAsTaggableOn::TagsHelper" is inside my application_helper
def tag_cloud
@tags = Blog.tag_counts_on(:tags)
end
is in my controller, and
<% tag_cloud(@tags, %w(css1 css2 css3 css4)) do |tag, css_class| %>
<%= link_to tag.name, { :action => :tag, :id => tag.name }, :class
=> css_class %>
<% end %>
is in my view
the error is:
"ActionView::TemplateError (und...