Hi there,
 I'm solving the problem about the plugin Magick. In my app in Gemfile
I've follwoing:

require 'rubygems'
require 'mongo'
require 'RMagick'

 include Magick

and in a model Files:

class Files
  def self.save(upload)
     ...
  img =  Magick::Image.read('public/data/nature6.jpg').first
  end
end

And I still getting error in subject of this post. I tried to move
require 'mongo'
require 'RMagick'

into the method self.save, but without succes...


But if I try to test, that the plugin is installed fine (test.rb):

require 'rubygems'
require 'RMagick'

puts Magick::Long_version


I will get following output:

This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009
by Timothy P. Hunter
Built with ImageMagick 6.6.7-8 2011-03-16 Q8 http://www.imagemagick.org
Built for ruby 1.8.7
Web page: http://rmagick.rubyforge.org
Email: [email protected]

So I guess this plugin is installed right... And I have a problem, that
I don't know why this plugin doesn't works in RoR application...



Thanks a lot for every hint advance! :)

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to