Bundler 正在使用为不同 gem 创建的 binstub
问题描述:
当我尝试在 rails 应用程序中创建一个脚手架时,它向我显示了这样的错误.那么我现在如何生成脚手架.
when i tried to create a scaffold inside the rails application it shows me the error like this. so how can i generate scaffold for now.
这就是我所做的.
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.
答
您位于 Rails 应用程序的子目录中.
You're in a subdirectory of your Rails application.
要解决此问题,请转到应用程序的顶级目录,然后重试.
To resolve the problem, change to the top level directory of your application, and then try again.