Just use rake 0.8.7
Uninstall rake 0.9.0
gem uninstall rake -v 0.9.0
And in your Gemfile:
gem 'rake', '0.8.7'
Don't forget: bundle install

On May 25, 9:06 pm, "Fungayi C." <li...@ruby-forum.com> wrote:
> Sorry guys, I am new at RoR and have the above error as I try to run
> rake db:migrate. Could anyone help.
>
> With --trace I get
>
>  rake db:migrate --trace
> rake aborted!
> undefined method `task' for #<Harpers::Application:0x9277438>
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:215:in
> `initialize_tasks'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:139:in
> `load_tasks'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:77:in
> `method_missing'
> /home/student/home/harpers/Rakefile:7:in `<top (required)>'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in
> `load'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in
> `load_rakefile'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:495:in
> `raw_load_rakefile'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:78:in
> `block in load_rakefile'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:129:in
> `standard_exception_handling'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:77:in
> `load_rakefile'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:61:in
> `block in run'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:129:in
> `standard_exception_handling'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:59:in
> `run'
> /home/student/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/bin/rake:31:in
> `<top (required)>'
> /home/student/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `load'
> /home/student/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `<main>'
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
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.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to