# Behaviors work only partialy in production

**URL:** <https://www.ruby-forum.com/t/behaviors-work-only-partialy-in-production/96989>\
**Category:** Radiant CMS\
**Created:** [July 4, 2006, 12:45am UTC](https://www.ruby-forum.com/t/behaviors-work-only-partialy-in-production/96989 "2006-07-04T00:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dror\_tirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@dror\_tirosh](https://www.ruby-forum.com/u/dror_tirosh)\
**Post date:** [July 4, 2006, 12:45am UTC](https://www.ruby-forum.com/t/behaviors-work-only-partialy-in-production/96989/1 "2006-07-04T00:45:50Z")

</div>

While working perfectly in development I have a problem with a few of  
the  
behaviors in production.  
Mainly the page missing and the mailer ones.  
I tend to think not all behaviors are loaded, any reason for that  
happening  
only in production?  
Dror

---

<div class="post-metadata">

**Author:** ![dror\_tirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@dror\_tirosh](https://www.ruby-forum.com/u/dror_tirosh)\
**Post date:** [July 4, 2006, 3:32am UTC](https://www.ruby-forum.com/t/behaviors-work-only-partialy-in-production/96989/2 "2006-07-04T03:32:43Z")

</div>

dror tirosh wrote:

> While working perfectly in development I have a problem with a few of the  
> behaviors in production.  
> Mainly the page missing and the mailer ones.

What kind of problem are you having with the page missing behavior? Are  
you using 0.5? Gem or Subversion checkout?

> I tend to think not all behaviors are loaded, any reason for that happening  
> only in production?

None that I can think of. Behaviors are required from environment.rb:

# Auto-require behaviors

Dir[“#{RADIANT\_ROOT}/app/behaviors/\*\_behavior.rb”].each do |behavior|  
require\_dependency behavior  
end

So there is no distinction between how they are loaded in production and  
development modes.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
