Acts_as_taggable (the gem) woes (solved)

J

Jean Helou

Hi,

I had to battle quite a bit to find how to load acts_as_taggable
without using require_gem.

where I previously had

require_gem 'acts_as_taggable'

I tried replacing by the obvious

gem 'acts_as_taggable'
require 'acts_as_taggable'

this failed miserably. The trick is that the acts_as_taggable module
is in a file named taggable in the lib directory of the gem. so to get
it to work you have to replace the require with :

require 'taggable'

Now you can use acts_as_taggable without any warnings. While this may
seem obvious to many here, I hope it prevents the waste of a couple
hours to a few other newbies thus my post.

Back to tracking every last of these deprecation warnings now that my
test pass again :)

Jean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top