# Plugins not loading in production environment

**URL:** <https://www.ruby-forum.com/t/plugins-not-loading-in-production-environment/169730>\
**Category:** Rails\
**Created:** [June 7, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/plugins-not-loading-in-production-environment/169730 "2009-06-07T23:59:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 7, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/plugins-not-loading-in-production-environment/169730/1 "2009-06-07T23:59:28Z")

</div>

I’m moving this query out from my earlier post. This is all I can  
assume that is happening here. When I run my site in production, any  
methods that call plugin functionality is failing. If I have methods  
in my models that call a plugin, running script/server -e production  
fails to launch with an error of `method\_missing’: undefined method.  
If I comment out all that code to at least get the server running,  
when I subsequently browse to a page which calls any plugin methods  
(I’m using the calendar\_helper plugin, for instance), this causes the  
page to generate a 500 error.

Can anyone suggest any reason why plugins would not be loading? I know  
that they’re there as they’re all sat in the vendor directory. This  
has me absolutely stumped and like I said before is literally only  
occurring in production mode on my remote server. Running the site in  
development works fine.

Many thanks in advance,

Alastair

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 8, 2009, 12:34am UTC](https://www.ruby-forum.com/t/plugins-not-loading-in-production-environment/169730/2 "2009-06-08T00:34:01Z")

</div>

I think I may have this figured out…

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 7, 2009, 3:19am UTC](https://www.ruby-forum.com/t/plugins-not-loading-in-production-environment/169730/3 "2009-07-07T03:19:06Z")

</div>

Any tips on what the issue was?

I have the same problem.
