当我试图在rails应用程序中创建一个脚手架时,它会向我显示这样的错误。那我怎么能生成脚手架呢。
这就是我所做的。
llocalhost@localhost:~/rain/log$ rails new scaffold user login_name:string password:string
Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub rails` to work around a system/bundle conflict.
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.
Type 'rails' for help.
答案 0 :(得分:0)
您位于Rails应用程序的子目录中。
要解决此问题,请转到应用程序的顶级目录,然后重试。