softwareengineer 99
2006-Jan-29 02:08 UTC
[Rails] Why am I getting "undefined local variable or method `acts_as_taggable''"?
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 --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060129/f0e9cf65/attachment.html
softwareengineer 99
2006-Jan-29 02:42 UTC
[Rails] Why am I getting "undefined local variable or method `acts_as_taggable''"?
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
---------------------------------
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