# Old file\_column Causing Load Errors?

**URL:** <https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731>\
**Category:** Rails\
**Created:** [November 20, 2007, 8:02am UTC](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731 "2007-11-20T08:02:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [November 20, 2007, 8:02am UTC](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731/1 "2007-11-20T08:02:27Z")

</div>

Hello,

I have an older production site that uses the file\_column 0.3.1 plug-  
in for file attachment management.

When I try to run it under a new version of Mongrel, any model that  
includes file\_column shows this in the log:

LoadError (Expected /server/appname/apps/appname/app/models/photo.rb  
to define Photo):

… unhelpful stack trace here…

This is with ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux] on RHEL.

Is this a known issue? Anything that we can do short of yanking  
file\_column and doing something else?

Thanks,  
Hunter

---

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [November 20, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731/2 "2007-11-20T17:08:33Z")

</div>

I had all sorts of problems with 1.8.5 of Ruby. Can you go down to 1.8.4  
or  
up to 1.8.6? Sounds like you can if you’re switching out Mongrel too.

What version of Mongrel?

And can you post the unhelpful stack trace? 🙂

---

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [November 20, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/old-file-column-causing-load-errors/120731/3 "2007-11-20T22:12:04Z")

</div>

Hunter H. wrote:

> This is with ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux] on RHEL.
> 
> Is this a known issue? Anything that we can do short of yanking  
> file\_column and doing something else?

A possible quick fix for these sort of issues is to add “Photo”  
to your environment.rb file. Such pre-loading can avoid problems  
with require loops.

But sometimes you get that error message when there’s some other  
type of error.

–  
We develop, watch us RoR, in numbers too big to ignore.
