I’ve got an acts_as_list association in one of my models. When I
attempt to load this file outside of Rails… ie: when I invoke my
script via:
ruby -S -I $RAILS_ROOT/app/models myscript.rb
I get the following error message:
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1532:in method_missing': undefined methodacts_as_list’ for
#Class:0xb7b06924 (NoMethodError)
from /home/sonnychee/projects/ngs/app/models/task_prereq.rb:30
How do I get the acts_as_list method defintion loaded up? There are
also a bunch of other plugins that I require in the vendor/plugins
folder…