Complete the code to install Bundler using RubyGems.
gem install [1]You use gem install bundler to install Bundler, the Ruby dependency manager.
Complete the command to create a Gemfile with Bundler.
bundle [1]The bundle init command creates a new Gemfile in your project.
Fix the error in the Gemfile to specify the version of the 'rails' gem.
gem 'rails', '[1]'
The ~> 6.0 syntax means compatible with version 6.0, which is the correct way to specify version constraints in Bundler.
Fill both blanks to install gems and update the Gemfile.lock file.
bundle [1] && bundle [2]
bundle install installs the gems listed in the Gemfile, and bundle update updates the gems and the Gemfile.lock file.
Fill all three blanks to define a gem with a version constraint and group it under development.
group :development do gem '[1]', '[2]' end bundle [3]
This code adds the 'pry' gem with version '~> 0.13.1' to the development group, then runs bundle install to install it.