Ok, I'm editing my Gemfile and looks this:

source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem "mongo_mapper"
gem "rails3-generators"
gem 'rmagick', :require => 'RMagick'

My output from bundle install
-------

Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.5)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.5)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.5)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.5)
Using arel (2.0.9)
Using activerecord (3.0.5)
Using activeresource (3.0.5)
Using bson (1.2.4)
Using bundler (1.0.10)
Using jnunemaker-validatable (1.8.4)
Using mongo (1.2.4)
Using plucky (0.3.7)
Using mongo_mapper (0.8.6)
Using thor (0.14.6)
Using railties (3.0.5)
Using rails (3.0.5)
Using rails3-generators (0.17.4)
Using rmagick (2.13.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a 
bundled gem is installed.


And Gemfile.lock
----------------

GEM
  remote: http://rubygems.org/
  specs:
    abstract (1.0.0)
    actionmailer (3.0.5)
      actionpack (= 3.0.5)
      mail (~> 2.2.15)
    actionpack (3.0.5)
      activemodel (= 3.0.5)
      activesupport (= 3.0.5)
      builder (~> 2.1.2)
      erubis (~> 2.6.6)
      i18n (~> 0.4)
      rack (~> 1.2.1)
      rack-mount (~> 0.6.13)
      rack-test (~> 0.5.7)
      tzinfo (~> 0.3.23)
    activemodel (3.0.5)
      activesupport (= 3.0.5)
      builder (~> 2.1.2)
      i18n (~> 0.4)
    activerecord (3.0.5)
      activemodel (= 3.0.5)
      activesupport (= 3.0.5)
      arel (~> 2.0.2)
      tzinfo (~> 0.3.23)
    activeresource (3.0.5)
      activemodel (= 3.0.5)
      activesupport (= 3.0.5)
    activesupport (3.0.5)
    arel (2.0.9)
    bson (1.2.4)
    builder (2.1.2)
    erubis (2.6.6)
      abstract (>= 1.0.0)
    i18n (0.5.0)
    jnunemaker-validatable (1.8.4)
      activesupport (>= 2.3.4)
    mail (2.2.15)
      activesupport (>= 2.3.6)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.16)
    mongo (1.2.4)
      bson (>= 1.2.4)
    mongo_mapper (0.8.6)
      activesupport (>= 2.3.4)
      jnunemaker-validatable (~> 1.8.4)
      plucky (~> 0.3.6)
    plucky (0.3.7)
      mongo (~> 1.1)
    polyglot (0.3.1)
    rack (1.2.1)
    rack-mount (0.6.13)
      rack (>= 1.0.0)
    rack-test (0.5.7)
      rack (>= 1.0)
    rails (3.0.5)
      actionmailer (= 3.0.5)
      actionpack (= 3.0.5)
      activerecord (= 3.0.5)
      activeresource (= 3.0.5)
      activesupport (= 3.0.5)
      bundler (~> 1.0)
      railties (= 3.0.5)
    rails3-generators (0.17.4)
      railties (>= 3.0.0)
    railties (3.0.5)
      actionpack (= 3.0.5)
      activesupport (= 3.0.5)
      rake (>= 0.8.7)
      thor (~> 0.14.4)
    rake (0.8.7)
    rmagick (2.13.1)
    thor (0.14.6)
    treetop (1.4.9)
      polyglot (>= 0.3.1)
    tzinfo (0.3.24)

PLATFORMS
  ruby

DEPENDENCIES
  mongo_mapper
  rails (= 3.0.5)
  rails3-generators
  rmagick


But I am getting still the error "uninitialized constant Files::Magick" 
in the class:

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

I'm sorry for these simply questions, but I am fighting with that the 
second day already and still without succes...

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to