I''m trying to use RMagick with Rails. I installed RMagick with: gem -y install rmagick It stated it installed successfully, despite some messages that wmf2eps wasn''t found (I don''t have libwmf installed - it''s not required, is it?). In my controller I put: require ''RMagick'' clown = Magick::ImageList.new("clown.jpg") clown = clown.rotate(90) clown.write(''rotate.jpg'') Using an actual existing image. Then when I try it, I get this: uninitialized constant ImageList RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:200:in `const_missing'' This error occured while loading the following files: image_list.rb Any idea what the problem is and how to fix it? thanks csn __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Weird. If I put the same clown code in a file and run it from the command line, it works. Could it be a problem with some Rails path var, permissions, or something? csn --- CSN <cool_screen_name90001-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> I''m trying to use RMagick with Rails. I installed RMagick with: > gem -y install rmagick > > It stated it installed successfully, despite some messages that wmf2eps wasn''t found (I don''t > have > libwmf installed - it''s not required, is it?). > > In my controller I put: > > require ''RMagick'' > > clown = Magick::ImageList.new("clown.jpg") > clown = clown.rotate(90) > clown.write(''rotate.jpg'') > > Using an actual existing image. Then when I try it, I get this: > > > uninitialized constant ImageList > > RAILS_ROOT: script/../config/.. > Application Trace | Framework Trace | Full Trace > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:200:in > `const_missing'' > > This error occured while loading the following files: > image_list.rb > > > Any idea what the problem is and how to fix it? > > thanks > csn > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Jeez, turns out file_column was interferring. Trying to load its libraries or something. I uninstalled it and restarted webrick. How aggravating... csn --- CSN <cool_screen_name90001-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > Weird. If I put the same clown code in a file and run it from the command line, it works. Could > it > be a problem with some Rails path var, permissions, or something? > > csn > > > --- CSN <cool_screen_name90001-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > > I''m trying to use RMagick with Rails. I installed RMagick with: > > gem -y install rmagick > > > > It stated it installed successfully, despite some messages that wmf2eps wasn''t found (I don''t > > have > > libwmf installed - it''s not required, is it?). > > > > In my controller I put: > > > > require ''RMagick'' > > > > clown = Magick::ImageList.new("clown.jpg") > > clown = clown.rotate(90) > > clown.write(''rotate.jpg'') > > > > Using an actual existing image. Then when I try it, I get this: > > > > > > uninitialized constant ImageList > > > > RAILS_ROOT: script/../config/.. > > Application Trace | Framework Trace | Full Trace > > > > > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:200:in > > `const_missing'' > > > > This error occured while loading the following files: > > image_list.rb > > > > > > Any idea what the problem is and how to fix it? > > > > thanks > > csn > > > > > > > > > > __________________________________ > > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > > http://mail.yahoo.com > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com