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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
benr75 (Guest)
on 2007-06-07 21: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.