Obelix
2007-Nov-16 15:06 UTC
Script in lib that uses active records fails with `method_missing'': undefined local variable or method `acts_as_taggable''
I have written a simple script in the lib directory that accesses an active record that ''acts_as_taggable'' I get this error when I run the script. /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/base.rb:1238:in `method_missing'': undefined local variable or method `acts_as_taggable'' for Entity:Class (NameError) For some reason, nothing in vendor/plugins is in the load path. Adding the specific directories to $: doesn''t help either. Any suggestions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thorsten Muller
2007-Nov-16 15:25 UTC
Re: Script in lib that uses active records fails with `metho
did u restart the server? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Anand Sankaran
2007-Nov-16 15:33 UTC
Re: Script in lib that uses active records fails with `metho
Yes, I did, just tried again as well. On Nov 16, 2007 7:25 AM, Thorsten Muller <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > did u restart the server? > -- > Posted via http://www.ruby-forum.com/. > > > >-- anand Photo gallery: http://www.anands.net Photo blog: http://blog.anands.net Text blog: http://textblog.anands.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---