# Esoteric error with file\_column 0.3.1

**URL:** <https://www.ruby-forum.com/t/esoteric-error-with-file-column-0-3-1/48328>\
**Category:** Rails\
**Created:** [November 18, 2005, 10:21pm UTC](https://www.ruby-forum.com/t/esoteric-error-with-file-column-0-3-1/48328 "2005-11-18T22:21:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![purestorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b5a626/32.png) [@purestorm](https://www.ruby-forum.com/u/purestorm)\
**Post date:** [November 18, 2005, 10:21pm UTC](https://www.ruby-forum.com/t/esoteric-error-with-file-column-0-3-1/48328/1 "2005-11-18T22:21:28Z")

</div>

Hi

I’m trying to setup file\_column in one of my projects. I have  
downloaded the 0.3.1 tarball release and extracted it into vendor/  
plugins. I have then tried to use file\_column in my Image model as it  
has been described in the README.

The first page I get from the webserver (Webrick in development mode)  
is fine. However, hitting reload on the same page (using the Image  
model) crashes my application. I get this error:

undefined method `assoc' for class`Magick::ImageList’

The application trace is as follows:

==8\<======================================================  
#{RAILS\_ROOT}opt/local/lib/ruby/site\_ruby/1.8/RMagick.rb:1002:in  
`undef_method' #{RAILS_ROOT}opt/local/lib/ruby/site_ruby/1.8/RMagick.rb:1002 #{RAILS_ROOT}/vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:206:in`load’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/…/…/activesupport/lib/  
active\_support/dependencies.rb:206:in `load' #{RAILS_ROOT}/vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:38:in`require\_or\_load’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/…/…/activesupport/lib/  
active\_support/dependencies.rb:21:in `depend_on' #{RAILS_ROOT}/vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:177:in`require\_dependency’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/…/…/activesupport/lib/  
active\_support/dependencies.rb:177:in `require_dependency' #{RAILS_ROOT}/app/models/image.rb:1 #{RAILS_ROOT}/app/controllers/admin/image_controller.rb:10:in`list’  
#{RAILS\_ROOT}/app/controllers/admin/image\_controller.rb:5:in `index’  
==8\<======================================================

I have a recent install of RMagick (works in another Rails app) and  
rails 0.14.2.

It seems to me that the error is related to rails reloading some file  
since the error occurs on the second reload.

I’d be grateful about any hints on how to solve this problem.

Regards

Manuel H.

---

<div class="post-metadata">

**Author:** ![purestorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b5a626/32.png) [@purestorm](https://www.ruby-forum.com/u/purestorm)\
**Post date:** [November 18, 2005, 10:27pm UTC](https://www.ruby-forum.com/t/esoteric-error-with-file-column-0-3-1/48328/2 "2005-11-18T22:27:30Z")

</div>

Please ignore my other email. My problem was caused by having  
“require\_dependency ‘RMagick’” in the controller file. Maybe this  
could go into a FAQ, though?

I’m sorry for bothering you.

Regards

Manuel H.

---

<div class="post-metadata">

**Author:** ![purestorm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b5a626/32.png) [@purestorm](https://www.ruby-forum.com/u/purestorm)\
**Post date:** [November 19, 2005, 2:15pm UTC](https://www.ruby-forum.com/t/esoteric-error-with-file-column-0-3-1/48328/3 "2005-11-19T14:15:18Z")

</div>

Hi Manuel, I believe this comes from the fact that with plugins you  
don’t need to require anything?

btw, there’s a wiki entry for FileColum now:

[http://wiki.rubyonrails.com/rails/pages/HowToUseFileColumn](http://wiki.rubyonrails.com/rails/pages/HowToUseFileColumn)

best  
Oliver

2005/11/18, Manuel H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
