File_column: uninitialized constant Magick


#1

I am getting this following error when using file_column with RMagick:
uninitialized constant Magick

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:200:in const_missing' ./script/../config/../vendor/plugins/rails_file_column/plugins/ file_column/branches/kyle/lib/file_column.rb:621:infile_column’
#{RAILS_ROOT}/app/models/story_entry.rb:7
./script/…/config/…/app/controllers/story_controller.rb:13:in `index’

This error occured while loading the following files:
story_entry.rb
magick.rb

It works fine without the :magick specification:

file_column :image, :magick => { :versions => { “medium” =>
“300x200>” } }

I am running OS X Tiger, and I installed RMagick following the
instruction here:

http://rmagick.rubyforge.org/install-osx.html

From command line, rmagick_test works fine.

However, it Rmagick seems to not work from file_column. I even tried
openning up environment.rb to add require ‘RMagick’, but nothing helps.

Thank you,

Shark Fin S.


#2

Dear all,

I solved this problem by downloading the newest stable release,
rather than using the SVN version of file_column.

Thank you,

Sharkie


#3

Shark Fin S. wrote:

Dear all,

I solved this problem by downloading the newest stable release,
rather than using the SVN version of file_column.

Thank you,

Sharkie

Thanks for this. It’s amazing how difficult the whole
ImageMagick/RMagick thing has been.


#4

Elliott B. wrote:

Shark Fin S. wrote:

Dear all,

I solved this problem by downloading the newest stable release,
rather than using the SVN version of file_column.

Thank you,

Sharkie

Thanks for this. It’s amazing how difficult the whole
ImageMagick/RMagick thing has been.

How could I improve the OS X installation instructions for RMagick? Post
here or email me at rmagick AT rubyforge DOT org. Thanks!