Forum: Ruby on Rails uninitialized constant ActiveRecord

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
641cf92986c7d9539e1d598c0288cd80?d=identicon&s=25 AnaRL (Guest)
on 2008-10-07 17:37
(Received via mailing list)
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:in `const_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:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in `run'
/usr/bin/rake:28
This topic is locked and can not be replied to.