Rails命令错误

Sea*_*eal 2 ruby-on-rails ruby-on-rails-4

我即将开始在另一个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).
Run Code Online (Sandbox Code Playgroud)

我重新安装了rails,还有同样的错误,有什么想法吗?

更新:

当我输入时,它实际上给了我同样的错误

rails -h

轨道

在cmd

use*_*270 5

对于任何有类似错误的人来说,这可以解决这个问题:

rake rails:update:bin
Run Code Online (Sandbox Code Playgroud)

这将生成二进制文件的"新"版本.只要说它什么Yes时候询问你要更换它们.