Infrastructure

First off, you’ll need a Rails application. You’ll be using Rails 5.2.0 and Ruby 2.5.0. Let’s start by generating the Rails application from the command line:

 % gem install rails
 % mkdir gatherer
 % cd gatherer
 % rails new .

This will create the initial directory structure and code for a Rails application. It will also run bundle install to load initial gems. You’re going to mostly stick with the initial gem set for the moment. I assume that you’re already familiar with Rails core concepts; I won’t spend a lot of time reexplaining them. If you’re not familiar with Rails, Agile Web Development with Rails [Rub13] is still the gold standard for getting started.

You need to create your databases. For ease of setup and distribution, ...

Get Rails 5 Test Prescriptions 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.