Creating the Rails Application

We really don’t need much more than the basic Rails application we’ll generate with rails new, but because we know we’re using Postgres, and later in the book we’ll be using Angular, there are a few options you should set now.

First, we want to tell Rails to use Postgres as our database (it uses SQLite by default). We also don’t want to use TurboLinks,[9] because it’s going to clash with the JavaScript you’ll be writing later on when you start to use Angular. We’re skipping Spring[10] as well, mostly because it isn’t 100% reliable, and it could cause your experience with these examples to not mimic the one in the book. Finally, we’re skipping Test::Unit as our testing framework, because we’re going to be using ...

Get Rails, Angular, Postgres, and Bootstrap, 2nd 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.