Hi, I am on section 7.4.2 of the tutorial. However when I try to migrate my heroku database, i get the following error: C:\Users\Manu\Documents\Manu\ruby\sample_app>heroku rake db:migrate (in /app) rake aborted! uninitialized constant Rake::DSL /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `<class:Ta skLib>'' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `<module:R ake>'' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top (req uired)>'' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `require '' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in `<top (r equired)>'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentation.r ake:1:in `require'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentation.r ake:1:in `<top (required)>'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `load'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in `block in <top (required)>'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in `each'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in `<top ( required)>'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:214:in `require'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:214:in `initialize_tasks'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:139:in `load_tasks'' /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77:in `method_missing'' /app/Rakefile:7:in `<top (required)>'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run'' /usr/ruby1.9.2/bin/rake:31:in `<main>'' Any ideas? -- 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/-/3z46QsFO3AQJ. 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.
It is an issue with your version of you rake gem. Check out the answer here: http://stackoverflow.com/questions/6085610/rails-rake-problems-uninitialized-constant-rakedsl On Jul 14, 2:51 pm, Manu Bangia <manuban...-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:> Hi, > > I am on section 7.4.2 of the tutorial. However when I try to migrate my > heroku database, i get the following error: > > C:\Users\Manu\Documents\Manu\ruby\sample_app>heroku rake db:migrate > (in /app) > rake aborted! > uninitialized constant Rake::DSL > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in > `<class:Ta > skLib>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in > `<module:R > ake>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top > (req > uired)>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in > `require > '' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in > `<top (r > equired)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentat ion.r > ake:1:in `require'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentat ion.r > ake:1:in `<top (required)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in > `load'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in > `block > in <top (required)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in > `each'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in > `<top ( > required)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:2 14:in > `require'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:2 14:in > `initialize_tasks'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:1 39:in > `load_tasks'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:7 7:in > `method_missing'' > /app/Rakefile:7:in `<top (required)>'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run'' > /usr/ruby1.9.2/bin/rake:31:in `<main>'' > > Any ideas?-- 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.
just include require ''rake/dsl_definition'' in top of your RakeFile On Fri, Jul 15, 2011 at 3:21 AM, Manu Bangia <manubangia-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:> Hi, > > I am on section 7.4.2 of the tutorial. However when I try to migrate my > heroku database, i get the following error: > > C:\Users\Manu\Documents\Manu\ruby\sample_app>heroku rake db:migrate > (in /app) > rake aborted! > uninitialized constant Rake::DSL > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in > `<class:Ta > skLib>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in > `<module:R > ake>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top > (req > uired)>'' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in > `require > '' > /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/rdoctask.rb:20:in > `<top (r > equired)>'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentation.r > ake:1:in `require'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks/documentation.r > ake:1:in `<top (required)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in > `load'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:15:in > `block > in <top (required)>'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in > `each'' > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/tasks.rb:6:in > `<top ( > required)>'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:214:in > `require'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:214:in > `initialize_tasks'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:139:in > `load_tasks'' > > /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77:in > `method_missing'' > /app/Rakefile:7:in `<top (required)>'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'' > /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run'' > /usr/ruby1.9.2/bin/rake:31:in `<main>'' > > Any ideas? > > -- > 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/-/3z46QsFO3AQJ. > 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. >-- 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.