rake aborted! undefined method `task' for
发布日期:2021-09-29 20:08:51 浏览次数:5 分类:技术文章

本文共 438 字,大约阅读时间需要 1 分钟。

rake aborted!
undefined method `task' for
这是因为又尝试升级到了rake 0.9
怎么办呢?
module ::Myapp   class Application     include Rake::DSL   end end module ::RakeFileUtils   extend Rake::FileUtilsExt end
module ::Myapp改成自己的项目名字
放到
require 'rake' and MyApp::Application.load_tasks
之间
要想降级回来的话
$ gem uninstall rake -v 0.9 $ gem install rake -v 0.8.7 Then, edit the Gemfile and add the line gem 'rake', '0.8.7' Lastly, just run the command $ bundle update

转载地址:https://blog.csdn.net/horace_lee/article/details/83936002 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-
下一篇:no such file to load --openssl

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月04日 17时55分46秒