Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: Act_as_taggable_on vs. Rocket_tag

Looks like Act_as_taggable_on is the more established gem, but Rocket_tag is the newer and hotter one.

Which one would you recommend, and why?

Most of the posts I found that compared Rails tagging were fairly outdated, and I was wondering if anyone knew something about Rocket_tag (not much info on it out there).

like image 937
kibaekr Avatar asked May 18 '12 06:05

kibaekr


2 Answers

I used both.

I am very happy with act_as_taggable, but for Rails 3.1 I switched to rocket_tag.

On every project that is in rails <3.1 act_as_taggable.

Sorry, I do not have any oline resources, just my own opinion.

like image 89
Eduard Avatar answered Nov 06 '22 12:11

Eduard


I'm the author of rocket_tag so I'm a bit biased. The reason I wrote rocket_tag was that I found the code for the other taggable gems to be messy and unreadable and thus hard to extend and play with. I generally use Ernie Millers excelent Squeel GEM for writing and composing database queries. Squeel is a super clean and powerful ruby DSL for putting together SQL.

If you have a need for some custom tagging query then I suggest taking a look at how rocket_tag is put together and trying to roll your own tagging analysis method.

like image 20
bradgonesurfing Avatar answered Nov 06 '22 13:11

bradgonesurfing