Uninitialized constant ActiveRecord


#1

Hi there,

I’m learning to use RoR. I’m trying to run rake to create my blank
database, but I get this
“rake aborted! uninitialized constant ActiveRecord ” msg
I don’t know what to do about it, I’ve checked I’ve installed
everything I need.
If I go to the files and lines indicated in the stack error
But it doesn’t mean anything to me, I can’t see anything wrong with
them.
Anyone any idea what’s going on?

Thank you,

Ana

rake db:create --trace
(in /home/anarl/MyProject)
** Invoke db:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:create
rake aborted!
uninitialized constant ActiveRecord
/home/anarl/MyProject/vendor/rails/actionpack/lib/…/…/activesupport/
lib/active_support/dependencies.rb:266:in load_missing_constant' /home/anarl/MyProject/vendor/rails/actionpack/lib/../../activesupport/ lib/active_support/dependencies.rb:453:inconst_missing’
/home/anarl/MyProject/vendor/rails/actionpack/lib/…/…/activesupport/
lib/active_support/dependencies.rb:465:in const_missing' /home/anarl/MyProject/vendor/rails/railties/lib/tasks/databases.rake: 30 /usr/lib/ruby/1.8/rake.rb:546:incall’
/usr/lib/ruby/1.8/rake.rb:546:in execute' /usr/lib/ruby/1.8/rake.rb:541:ineach’
/usr/lib/ruby/1.8/rake.rb:541:in execute' /usr/lib/ruby/1.8/rake.rb:508:ininvoke_with_call_chain’
/usr/lib/ruby/1.8/rake.rb:501:in synchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain’
/usr/lib/ruby/1.8/rake.rb:494:in invoke' /usr/lib/ruby/1.8/rake.rb:1931:ininvoke_task’
/usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1909:ineach’
/usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1948:instandard_exception_handling’
/usr/lib/ruby/1.8/rake.rb:1903:in top_level' /usr/lib/ruby/1.8/rake.rb:1881:inrun’
/usr/lib/ruby/1.8/rake.rb:1948:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:inrun’
/usr/bin/rake:28