Forum: Ruby on Rails Module Not Loaded by script/runner

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aaa24974425d6542198c2ae0b5f9c49a?d=identicon&s=25 benr75 (Guest)
on 2007-06-07 19:59
(Received via mailing list)
Hello ~

I have a Model Action that I wish to call from script/runner.  This
Model accesses another action in a module in the lib directory.  If I
fire up script/console and execute Model.action it works perfectly,
but when I run the command via script/runner it cannot find the action
I want to call in my module.

If I run: script/runner "puts $:" The lib directory is shown, so the
module should be loaded.  I have tried many different explicit
approaches, but cannot get the action in the module to be called from
the model invoked via script/runner.

Thx in advance for any ideas!

~ Ben
This topic is locked and can not be replied to.