# Module Not Loaded by script/runner

**URL:** <https://www.ruby-forum.com/t/module-not-loaded-by-script-runner/106237>\
**Category:** Rails\
**Created:** [June 7, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/module-not-loaded-by-script-runner/106237 "2007-06-07T19:59:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benr75](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@benr75](https://www.ruby-forum.com/u/benr75)\
**Post date:** [June 7, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/module-not-loaded-by-script-runner/106237/1 "2007-06-07T19:59:12Z")

</div>

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
