Rails: Act_as_taggable_on vs. Socket_tag

Act_as_taggable_on seems to be a better known stone, but Rocket_tag is newer and hotter.

Which one would you recommend and why?

Most of the posts I found comparing Rails tags were pretty outdated, and I was wondering if anyone knew about Rocket_tag (a bit of information about it there).

+6
source share
2 answers

I used both.

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

In every project that is in rails <3.1 act_as_taggable.

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

+3
source

I am the author of rocket_tag, so I am a little biased. The reason I wrote rocket_tag was because I found code for other gems that can be dirty and unreadable, and therefore it’s hard to extend and play. I usually use Ernie Millers excelent Squeel GEM to write and write database queries. Squeel is an ultra-clean and powerful ruby ​​DSL for building SQL.

If you need some kind of custom tag request, I suggest taking a look at how the rocket_tag package is compiled and trying to overturn your own tag analysis method.

+3
source

Source: https://habr.com/ru/post/916067/


All Articles