Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

run bundle install in Ruby on Rails new project

I'm learning Ruby on Rails with Lynda.com. In one of the early videos, the instructor creates a new project using the command

rails new simple_cms -d mysql

After he ran that, he got some output like this, which I also got, but at the bottom of mine, I saw "run bundle install". His doesn't have that...

Is that a command I'm supposed to run?

   create  test/unit
      create  test/unit/.gitkeep
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.gitkeep
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
         run  bundle install
like image 632
Leahcim Avatar asked Sep 15 '11 23:09

Leahcim


2 Answers

This issue caught me off guard. However, I was ultimately at fault. I had created a shell alias of rails="bundle exec rails" And I had forgotten about this, as it served to make working with my other projects easier. However, the "rails new" command is incompatible with such an alias. D'oh.

like image 200
Excalibur Avatar answered Sep 19 '22 21:09

Excalibur


You first need to install the bundler gem:

gem install bundler

Once it's done, run:

bundle

or:

bundle install

(same thing)

like image 39
MrDanA Avatar answered Sep 18 '22 21:09

MrDanA