[Ruby] What to do when you see Could not locate Gemfile or .bundle/ directory

less than 1 minute read

I will summarize what I learned and stumbled on every day. If you find any mistakes, please let us know! I’m always helped by other people’s articles, so I hope it helps.

What kind of error

Gemfile not found error.

What happens when

While not moving to the directory of the created application,

bundle exec rake db:create

This happens when you execute a command such as.

approach

Use the cd command to move to the created application directory and then execute.