On Tue, Jan 29, 2013 at 8:26 AM, Kevin Lawrence <ke...@diamond-sky.com>wrote:
> I'm trying to implement something like stackoverflow's tags popover, where > you can mouseover any tag and see the number of posts with that tag. > > I'm trying to do something like this: > > topic = Topic.first > topic.tags.each do |tag| > puts "#{tag.name} #{tag.count}" > end > > But the count is never populated. > > I see, from the way that the tag cloud works in TagsController, that there > is a method Tag.counts() that will get me the count but I can't figure out > how to get from here to there. What am I missing? > > I see also that there is a migration that adds a column taggings_count to > the Tag table but that is never updated as far as I can tell. > Have you looked at https://github.com/mbleigh/acts-as-taggable-on#tag-cloud-calculations > > Can I get some advice? > > Thanks in advance, > > Kevin > > -- > You received this message because you are subscribed to the Google Groups > "CommunityEngine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to communityengine+unsubscr...@googlegroups.com. > To post to this group, send email to communityengine@googlegroups.com. > Visit this group at http://groups.google.com/group/communityengine?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To unsubscribe from this group and stop receiving emails from it, send an email to communityengine+unsubscr...@googlegroups.com. To post to this group, send email to communityengine@googlegroups.com. Visit this group at http://groups.google.com/group/communityengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.