我即将开始开发另一个 Web 应用程序,我将目录更改为
/rails_projects
并输入
导轨新空白
然后我得到这个错误
Error: Command not recognized
Usage: rails COMMAND [ARGS]
The common rails commands available for engines are:
generate Generate new code (short-cut alias: "g")
destroy Undo code generated with "generate" (short-cut alias: "d")
All commands can be run with -h for more information.
If you want to run any commands that need to be run in context
of the application, like `rails server` or `rails console`,
you should do it from application's directory (typically test/dummy).
我已经重新安装了 Rails,但仍然出现同样的错误,有什么想法吗?
UPDATE:
当我输入时,它实际上给了我同样的错误
rails -h
rails
in cmd
对于任何可能遇到类似错误的人来说,这为我解决了这个问题:
rake rails:update:bin
这将生成二进制文件的“新”版本。说啊Yes
当它要求您更换它们时。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)