When running rake db:create:all I get an the following error:
rake aborted!
undefined method `namespace' for #<Jquery::Rails::Engine:0x102530798>
The rakefile looks as follows:
require File.expand_path('../config/application', __FILE__)
module ::TestProject
class Application
include Rake::DSL
end
end
module ::RakeFileUtils
extend Rake::FileUtilsExt
end
TestProject::Application.load_tasks
What is going wrong here?
I had the same problem and I add
Rake::DSLbeforeTestProject::Application.load_tasksto make it works. I don’t know if it’s good, but it works for me ! (Sorry if I made mistakes, I speak French.)