开发者

Could not locate Gemfile after executing "bundle install"

开发者 https://www.devze.com 2023-03-02 19:50 出处:网络
Hey, I am completely new to Rails and just started created my first Project, following the Steps of a tutorial.

Hey, I am completely new to Rails and just started created my first Project, following the Steps of a tutorial.

I created the new Project using: rails myapp.

Then I should execute bundle install, this did not work because bundler has not been installed, after an Update on Gems and installing bundler I have been able to execute bundle install, but every time I receive: Could not locate Gemfile

I checked my project dir, it is true there is no Gemfile, but should this be created automatically or not?

Thanks in开发者_开发问答 advance


That depends on your version of rails. Since you simply write rails myapp I assume you do not use Rails 3, where you would write rails new myapp. In Rails 3, at least, the Gemfile is created for you automatically, and I would recommend using the latest version of Rails.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号