hey does anyone know if there is some type of workaround or known bug
fix available to individuals who are trying to get RMagick and Rails
talking to each other properly on WindowsXP / Apache2 / FastCGI?
Ive been frustrated over this issue since last week and I have barely
gotten anyone to respond, and not a single solution.
I have installed ImageMagick and RMagick and tested both as per the
documentation, as soon as I bring it into my rails application, it fails
giving me NameError messages.
im just trying some super basic stuff right now, so in my application
controller I have the following code (equal signs not included):
===================================================
require “RMagick”
class BiographyController < ApplicationController
include Magick
layout “public”
def index
helloworld = Magick::ImageList.new( "images/rails.png" )
@biography = Biography.find( :all )
end
end
===================================================
Now… looking at the code above, is anything wrong?
I have only been using Ruby on Rails for a few weeks now, and learning
as much as I can as I go. I also have no previous knowledge of the Ruby
language… so bare with me if its painfully obvious… im trying though
if that counts…
The Error I get is as follow (equal signs not included):
===================================================
NameError in BiographyController#index
uninitialized constant ImageList
RAILS_ROOT: C:/web/firstappever/public/…/config/…
This error occured while loading the following files:
magick/image_list.rb
If I comment out the @biography, error still occurs… im desperate to
get this working properly…
my setup is as follows:
WinXP SP2 (win32)
Ruby 1.8.4
Rails 1.1.6
RMagick 1.13.0
ImageMagick 6.2.9-Q8
Sometimes I get another NameError, usually when first loading the
application section where I have this code placed… and its:
===================================================
uninitialized constant Enum
This error occured while loading the following files (equal signs not
included):
C:/web/firstappever/public/…/config/…/app/controllers/biography_controller.rb
RMagick
magick/enum.rb
===================================================
Right now im at a 100% stand still until I can get this working… if I
need to drop back a few versions of ruby or rails or whatever, then
please let me know, but im dying to get this working!
Thanks to anyone who can show me the light!!