Tuesday, May 24, 2011

Rails 3 - rake aborted! undefined method `task' for #

Hi,

In Rails 3. there was a problem with rake 0.9.0 gemset.

When i do rake db:create I got the following error,

undefined method `task' for #

The fix is as follows,

go to config/application.rb file.

Add this line inside the class,

include Rake::DSL


That fixed the problem

4 comments:

Michael Mattingly said...

Thanks a million.

Ujjwal said...

thankx for ur help......

Ujjwal said...

thankx a lot

Anonymous said...

Awesome, truly amazing work!
Thank you
http://roneebin.webs.com/