Bundler uses binstub, which was created for another gem

when I tried to create a scaffold inside the rails application, it shows me an error like this. so how can i create a scaffold now.

this is what i did.

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.
+4
source share
1 answer

You are in a subdirectory of your Rails application.

To fix the problem, go to the top-level directory of the application and try again.

0
source

All Articles