5
不再支持对Rake DSL方法的全局访问
我正在研究Ruby on Rails 3教程,并在命令行中键入了以下内容: rake db:migrate 产生了以下警告。 WARNING: Global access to Rake DSL methods is deprecated. Please Include ... Rake::DSL into classes and modules which use the Rake DSL methods. WARNING: DSL method DemoApp::Application#task called at /Users/imac/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks' 我不确定该怎么做或如何使用它。我不知道Rake有其他命令。 我该如何解决这个问题?