Why am I getting "undefined local variable or method `acts_a


#1

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


#2

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 removed_email_address@domain.invalid 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
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails