Forum: Ruby on Rails file_column: uninitialized constant Magick

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bf1e5a140a444bdc5011185bba3a1ed3?d=identicon&s=25 Shark Fin Soup (Guest)
on 2006-02-13 15:12
(Received via mailing list)
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:in `file_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 Soup
Bf1e5a140a444bdc5011185bba3a1ed3?d=identicon&s=25 Shark Fin Soup (Guest)
on 2006-02-17 10:20
(Received via mailing list)
Dear all,

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

Thank you,

Sharkie
419c9cc258895bed66c89892721c2971?d=identicon&s=25 Elliott Blatt (eblatt)
on 2007-01-26 22:26
Shark Fin Soup 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.
B33ea5c12d767bfd1253940a960274f5?d=identicon&s=25 Tim Hunter (timhunter)
on 2007-01-27 00:56
Elliott Blatt wrote:
> Shark Fin Soup 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!
This topic is locked and can not be replied to.