Test Your Knowledge

Quiz

  1. What’s the name of the Ruby application packaging utility and how do you install Rails with it?

  2. In what instances would you avoid WEBrick?

  3. Why should you install a particular version of Ruby on your platform when Ruby already comes installed?

Answers

  1. RubyGems, or just “gems,” which is run with the gem command, is Ruby’s application packager. To install the latest version of Rails and all its dependencies, just type gem install rails.

  2. WEBrick is great for testing your Rails applications, but definitely not the best choice for deployments where performance matters.

  3. Rails is still running on version 1.8 of Ruby, not the latest 1.9, but it requires features in the more recent versions of 1.8, notably 1.8.6.

Get Learning Rails: Live Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.