Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to install the 'rails' gem using the command line.
Ruby
gem [1] rails Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'gem update' instead of 'gem install'.
Using 'gem remove' which deletes gems.
Using 'gem list' which only shows installed gems.
✗ Incorrect
The gem install command is used to install a gem, such as 'rails'.
2fill in blank
mediumComplete the code to install version 2.7.0 of the 'nokogiri' gem.
Ruby
gem install nokogiri -v [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' as a version number.
Using a version number that is not available.
Omitting the
-v flag.✗ Incorrect
Use -v followed by the version number to install a specific gem version.
3fill in blank
hardFix the error in the command to install the 'sinatra' gem with version 2.1.0.
Ruby
gem install sinatra [1] 2.1.0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--version' which is not recognized by gem install.
Using '-ver' or '-version' which cause errors.
✗ Incorrect
The correct flag to specify gem version is -v.
4fill in blank
hardFill both blanks to install the 'puma' gem with version 5.6.4 and show verbose output.
Ruby
gem [1] puma [2] 5.6.4 --verbose
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'install'.
Using '-V' which is not the version flag.
✗ Incorrect
Use install to add the gem and -v to specify the version.
5fill in blank
hardFill all three blanks to install the 'devise' gem version 4.8.0 with documentation skipped.
Ruby
gem [1] devise [2] 4.8.0 [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--skip-docs' which is not a valid gem flag.
Omitting the version flag.
✗ Incorrect
Use install to add the gem, -v for version, and --no-document to skip documentation.