Forum: Ruby on Rails Why am I getting "undefined local variable or method `acts_a

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F68e4842b0a5487678e26046fdb2fdf3?d=identicon&s=25 softwareengineer 99 (Guest)
on 2006-01-29 03:10
(Received via mailing list)
Hello,

  I recently installed  acts_as_taggable using the following command:

gem install acts_as_taggable
# output follows
Attempting local installation of 'acts_as_taggable'
Local gem file not found: acts_as_taggable*.gem
Attempting remote installation of 'acts_as_taggable'
Updating Gem source index for: http://gems.rubyforge.org
Successfully installed acts_as_taggable-1.0.4
Installing RDoc documentation for acts_as_taggable-1.0.4...
  And added the following line to environment.rb
  require_gem "acts_as_taggable-1.0.4"

  However when I add the following to my target class (resource.rb):
  acts_as_taggable

  I get the following error

undefined local variable or method `acts_as_taggable' for Resource:Class

Why am I getting this error and how can I fix it? My installation seemed
to have gone OK so what am I missing here?

I have been searching everywhere and any pointers are greatly
appreciated.

Thanks
Frank
F68e4842b0a5487678e26046fdb2fdf3?d=identicon&s=25 softwareengineer 99 (Guest)
on 2006-01-29 03:44
(Received via mailing list)
Ok guys it was really silly. I got it figured out.

  Just remember whenever you modify your environment.rb file, remember
to restart the web server.

  Long day for me.

  Frank

softwareengineer 99 <softwareengineer99@yahoo.com> wrote:  Hello,

  I recently installed  acts_as_taggable using the following command:

gem install acts_as_taggable
# output follows
Attempting local installation of 'acts_as_taggable'
Local gem file not found: acts_as_taggable*.gem
Attempting remote installation of 'acts_as_taggable'
Updating Gem source index for: http://gems.rubyforge.org
Successfully installed acts_as_taggable-1.0.4
Installing RDoc documentation for acts_as_taggable-1.0.4...
  And added the following line to environment.rb
  require_gem "acts_as_taggable-1.0.4"

  However when I add the following to my target class (resource.rb):
  acts_as_taggable

  I get the following error

undefined local variable or method `acts_as_taggable' for Resource:Class

Why am I getting this error and how can I fix it? My installation seemed
to have gone OK so what am I missing here?

I have been searching everywhere and a
 ny
 pointers are greatly appreciated.

Thanks
Frank





---------------------------------

   What are the most popular cars? Find out at Yahoo! Autos
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
This topic is locked and can not be replied to.