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
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.
You first need to install the bundler gem:
gem install bundler
Once it's done, run:
bundle
or:
bundle install
(same thing)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With