[Rails] Why am I getting "undefined local variable or method
`acts_as_taggable'"?
softwareengineer 99
softwareengineer99 at yahoo.com
Sun Jan 29 02:42:08 GMT 2006
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 at 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 at lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060129/9358f0f0/attachment.html
More information about the Rails
mailing list