I use acts_as_taggable_on
in my current Rails project. On one overview page i am displaying an index of objects with their associated tags. I use the following code
Use this:
Post.includes(:tags).all
and then:
post.tags.collect { |t| t.name }
Try
@projects = Project.includes(:categories).all
I agree with Jan Drewniak, huge performance boosted with
Download.includes(:tags).all
and in views:
download.tags.map {|t| link_to t, t.name}.join(', ')
But still too slow.
Any other idea?