errors building rails app

Hello I can't seem to build a rails app, I am getting error with, 'rake db:create' as well as the general 'rails generate' command?

my linux box environment:

$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

$ gem -v
1.8.5

$ rails -v
Rails 3.0.9

$ uname -a
Linux karma 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Here is the output for each:

$ rake db:create

(in /home/yadav/dev/rails/tmp/blog)
rake aborted!
uninitialized constant Rake::DSL
/usr/local/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `<module:Rake>'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-3.8/lib/rdoc/task.rb:37:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/rdoc-3.8/lib/rdoc/task.rb:37:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks/documentation.rake:2:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks/documentation.rake:2:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks.rb:15:in `load'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks.rb:15:in `block in <top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks.rb:6:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/tasks.rb:6:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:215:in `require'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:215:in `initialize_tasks'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:139:in `load_tasks'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
/home/yadav/dev/rails/tmp/blog/Rakefile:7:in `<top (required)>'
/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/local/bin/rake:31:in `<main>'

$ rails g scaffold title:string description:test

       invoke active_record
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/base.rb:266:in `const_defined?': wrong constant name Title:string (NameError)
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/base.rb:266:in `block in class_collisions'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/base.rb:248:in `each'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/base.rb:248:in `class_collisions'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators/named_base.rb:118:in `block in check_class_collision'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:269:in `block in _invoke_for_class_method'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/shell.rb:74:in `with_padding'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:258:in `_invoke_for_class_method'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:150:in `_invoke_from_option_orm'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
         from /usr/local/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/generators.rb:163:in `invoke'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands/generate.rb:10:in `<top (required)>'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `block in load_dependency'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in `new_constants_in'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in `load_dependency'
         from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
         from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:17:in `<top (required)>'
         from script/rails:6:in `require'
         from script/rails:6:in `<main>'

installed gems

$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.9)
actionpack (3.0.9)
activemodel (3.0.9)
activerecord (3.0.9)
activeresource (3.0.9)
activesupport (3.0.9)
archive-tar-minitar (0.5.2)
arel (2.1.3, 2.1.1, 2.0.10)
authlogic (3.0.3)
autotest (4.4.6)
autotest-rails-pure (4.1.2)
babosa (0.3.5)
bcrypt-ruby (2.1.4)
builder (3.0.0, 2.1.2)
bundler (1.0.15)
calendar_date_select (1.16.3, 1.16.2)
cancan (1.6.5)
cocaine (0.1.0)
coffee-script (2.2.0)
coffee-script-source (1.1.1)
columnize (0.3.4, 0.3.3)
daemon_controller (0.2.6)
devise (1.4.2, 1.4.1)
diff-lcs (1.1.2)
erubis (2.7.0, 2.6.6)
execjs (1.2.0)
fastri (0.3.1.1)
fastthread (1.0.7)
file-tail (1.0.6)
forgery (0.3.12, 0.3.10)
friendly_id (3.2.1.1)
grackle (0.1.10)
gruff (0.3.6)
hike (1.2.0, 1.1.0)
horo (1.0.3)
i18n (0.6.0, 0.5.0)
json (1.5.3)
linecache19 (0.5.12)
mail (2.3.0, 2.2.19)
mechanize (2.0.1)
memcache-client (1.8.5)
mime-types (1.16)
minitest (2.3.1, 1.6.0)
mocha (0.9.12)
multi_json (1.0.3)
net-http-digest_auth (1.1.1)
net-http-persistent (1.8)
nifty-generators (0.4.6)
nokogiri (1.5.0, 1.4.6)
oauth (0.4.5)
orm_adapter (0.0.5)
paperclip (2.3.15, 2.3.12)
passenger (3.0.7)
patron (0.4.13, 0.4.12)
polyglot (0.3.1)
rack (1.3.1, 1.3.0, 1.2.3)
rack-cache (1.0.2)
rack-mount (0.8.1, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.0, 0.5.7)
rails (3.0.9)
railties (3.0.9)
rake (0.9.2, 0.8.7)
rdoc (3.8, 2.5.8)
rdoc-data (2.5.3)
RedCloth (4.2.7)
rmagick (2.13.1)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
ruby-debug-base19 (0.11.25)
ruby-debug19 (0.11.6)
ruby-prof (0.10.8, 0.10.7)
ruby_core_source (0.1.5)
rubygems-update (1.8.5)
sass (3.1.4, 3.1.3)
sprockets (2.0.0.beta.10)
spruz (0.2.11, 0.2.8)
sqlite3 (1.3.3)
thor (0.14.6)
tilt (1.3.2)
tiny_mce (0.1.4)
tkri (0.9.5)
treetop (1.4.9)
tzinfo (0.3.29, 0.3.28)
uglifier (1.0.0)
w3c_validators (1.1.1)
warden (1.0.4)
webrat (0.7.3)
webrobots (0.0.10, 0.0.9)
will_paginate (2.3.15)
wxruby (2.0.0 x86_64-linux)
yajl-ruby (0.8.2)
ZenTest (4.5.0)

http://stackoverflow.com/questions/6085610/rails-rake-problems-uninitialized-constant-rakedsl

http://stackoverflow.com/questions/6085610/rails-rake-problems-uninitialized-constant-rakedsl
that solved with ‘rake db:create’ only, i am still seeing the same
error for, ‘rails generate…’

You left off the name of the resource to generate and went straight into the field definitions.

$ rails g scaffold title:string description:test

opps! you're right Kendall =) ... I feel like a Rails noob =)

Happens to everyone :wink: