gem and rails3: LoadError

Hi everybody,

I'm trying to use the prawn gem into a new rails3 application on debian.

What I did:

As root: - install rubygems, from http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz - gem install rails - gem install prawn - gem install pdf-reader - gem list | grep prawn =>         prawn (0.8.4)         prawn-core (0.8.4)         prawn-layout (0.8.4)         prawn-security (0.8.4)

As a user:   - rails new myapp   - cd myapp ; rails console => /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': no such file to load -- prawn/core (LoadError)

Could somebody say what to do for prawn (or any other gem I suppose) being recognized in user's applications?

Thanks Maurice

Hey Maurice,

I think you had to use BUNDLER(in rails 3.x) as gem dependencies for your application. Here is the guide for BUNDLER(http://gembundler.com/)

cheers,

Maurice Dubois wrote in post #974263:

Hi everybody,

I'm trying to use the prawn gem into a new rails3 application on debian.

What I did:

As root: - install rubygems, from http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz - gem install rails - gem install prawn - gem install pdf-reader - gem list | grep prawn =>         prawn (0.8.4)         prawn-core (0.8.4)         prawn-layout (0.8.4)         prawn-security (0.8.4)

As a user:   - rails new myapp   - cd myapp ; rails console =>

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in