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) -- Kind Regards, Rajinder Yadav | http://DevMentor.org | Do Good! ~ Share Freely -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
http://stackoverflow.com/questions/6085610/rails-rake-problems-uninitialized-constant-rakedsl 2011/7/22 Rajinder Yadav <devguy.ca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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) > > -- > Kind Regards, > Rajinder Yadav | http://DevMentor.org | Do Good! ~ Share Freely > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.**com<rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe@**googlegroups.com<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at http://groups.google.com/** > group/rubyonrails-talk?hl=en<http://groups.google.com/group/rubyonrails-talk?hl=en> > . > >-- Fernando Almeida www.fernandoalmeida.net -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 11-07-22 01:18 AM, Fernando Almeida wrote:> http://stackoverflow.com/questions/6085610/rails-rake-problems-uninitialized-constant-rakedslthat solved with ''rake db:create'' only, i am still seeing the same error for, ''rails generate...''> > 2011/7/22 Rajinder Yadav <devguy.ca <http://devguy.ca>@gmail.com > <http://gmail.com>> > > 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) > > -- > Kind Regards, > Rajinder Yadav | http://DevMentor.org | Do Good! ~ Share Freely > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > <mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > > -- > Fernando Almeida > www.fernandoalmeida.net <http://www.fernandoalmeida.net> > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- Kind Regards, Rajinder Yadav | http://DevMentor.org | Do Good! ~ Share Freely -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Thursday, July 21, 2011 11:14:03 PM UTC-6, Rajinder Yadav wrote:> > $ 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 > >You left off the name of the resource to generate and went straight into the field definitions. $ rails g scaffold <name> title:string description:test -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/IEGvM_xBfJQJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
opps! you''re right Kendall =) ... I feel like a Rails noob =) On Fri, Jul 22, 2011 at 4:20 PM, Kendall Gifford <zettabyte-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Thursday, July 21, 2011 11:14:03 PM UTC-6, Rajinder Yadav wrote: >> >> $ 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 > > You left off the name of the resource to generate and went straight into the > field definitions. > > $ rails g scaffold <name> title:string description:test > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/IEGvM_xBfJQJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux: 2.6.35-22-generic Kubuntu x86_64 10.10 | KDE 4.5.1 Ruby 1.9.2p0 | Rails 3.0.1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Friday, July 22, 2011 2:44:12 PM UTC-6, Rajinder Yadav wrote:> > opps! you''re right Kendall =) ... I feel like a Rails noob =)Happens to everyone ;-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Xvv3xX_cyf0J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.