Bundler 正在使用为不同 gem 创建的 binstub [英] Bundler is using a binstub that was created for a different gem

查看:40
本文介绍了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.

这篇关于Bundler 正在使用为不同 gem 创建的 binstub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆