Installing and using acts-as-taggable-on

Posted by seaneshbaugh on Stack Overflow See other posts from Stack Overflow or by seaneshbaugh
Published on 2010-05-03T09:33:32Z Indexed on 2010/05/03 9:38 UTC
Read the original article Hit count: 382

This is going to be a really dumb question, I just know it, but I'm going to ask anyways because it's driving me crazy.

How do I get acts-as-taggable-on to work?

I installed it as a gem with gem install acts-as-taggable-on because I can't ever seem to get installing plugins to work, but that's a whole other batch of questions that are all probably really dumb. Anyways, no problems there, it installed correctly.

I did ruby script/generate acts_as_taggable_on_migration and rake db:migrate, again no problems.

I added acts_as_taggable to the model I want to use tags with, started up the server and then loaded the index for the model just to see if what I've got so far is working and got the following error: undefined local variable or method `acts_as_taggable' for #.

I figure that just means I need to do something like require 'acts-as-taggable-on' to my model's file because that's typically what's necessary for gems. So I did that hit refresh and got uninitialized constant ActiveRecord::VERSION. I'm not even going to pretend to begin to know what that means went wrong.

Did I go wrong somewhere or there something else I need to do. The installation instructions seem to me like they just assume you generally know what you're doing and don't even begin to explain what to do when things go wrong.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby