Hi, I''m trying to use File_colum plugin
(rails/../plugin/trunk)
with RMagick.
When I use in the model:
class Usuario < ActiveRecord::Base
file_column :image
...rest of the code....
end
There''s no problem, images are uploaded and all is working ok. The
problem comes when I try to use:
class Usuario < ActiveRecord::Base
file_column :image, :magick => { :geometry => "640x480>" }
...rest of the code....
end
I receive this error:
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so: cannot open
shared object file: No such file or directory -
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so
RAILS_ROOT: ../config/..
This error occurred while loading the following files:
RMagick
RMagick.so
I try adding require ''RMagick'' to the models, but it still not
working.
I checked in my directory
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so and it exists.
I can''t change the ld.so.conf file because the admin server
don''t want
to give me access and I can''t set LD_.._PATH= /usr/lib for the same
reason.
The solution have to be something in my rails directory, like put the
libraries RMagick.so and RMagick in, for example, rails/plugin and call
it from environment.rb... but I no have idea about how to do.
Some ideas about this problem? thanks!
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---