Forum: Ruby on Rails acts_as_taggable and tag list

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1b275ea705cc1671f13105d29684cbec?d=identicon&s=25 Scott Walter (sfwalter)
on 2006-04-07 04:22
(Received via mailing list)
Hi,

I'm using the new acts_as_taggable on Rails 1.1.1.  I would like to get
a list of all the tags for a particular model type, in my case "Post".
I got it to work with:

Tag.find(:all,:include => :taggings, :conditions =>
"taggable_type='Chunk'")

But I'm wondering if there's a more Rubyish elegant way.

thanks, scott.

----------------------------------------------------------------------------------------------------
What's an Intel chip doing in a Mac? A whole lor more that it's ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
This topic is locked and can not be replied to.