tags:

views:

43

answers:

1

I am trying to work with the Populator gem. I just installed it, but Ruby is unable to load it. I have only one Ruby installation on my machine and it's Ruby 1.8.7. What can I do?

This is the gem that doesn't get loaded.

Edit: Here is the trace out. I should have included this earlier.

Freenaut:bio-clinical newuser$ rake db:populate --trace
(in /Users/newuser/Dropbox/Sites/rails/bio-clinical)
** Invoke db:populate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:populate
rake aborted!
no such file to load -- populator
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/newuser/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
A: 

Are you working with Rails or just Ruby?

Did you use

require 'rubygems'

before require 'populator'?

動靜能量
I'm working with Rails. It didn't make a difference when I added 'require "rubygems"' just now.
picardo