ruby-on-railsinstallationbundlegemfilelocate

Could not locate Gemfile: gemfile not found


I just installed rails and I got the following message after creating "rails new mySite" and running "bundle install". I know gemfile is in the same folder and I checked it by typing "gem -v". I don't know what went wrong. Below is what I see when I run "bundle env". bundle env


Solution

  • Try this

    rails new mySite
    cd mySite
    bundle install
    

    You need to be inside the project home directory to use bundle command.

    Hope that helps!