Start with Rails Getting Started

[document_generator: skip_diff_files]
Clean up Gemfile

Remove comments and sort.

Much of programming time is spent reading.  By improving organization of this file, it will be easier to review it as we add more and more gems in the future.
Install Devise Gem
Run the Devise installer

Run this command:

```sh

$ rails generate devise:install
```
Post Devise install configuration

When you run the Devise installer, it provides directions for you to follow after installing.
Add Ruby project files

Useful for keeping gemsets distinct between projects.
Create devise model

Run the following command:

```sh

$ rails generate devise User
```
Update authentication feature tests

To use devise instead of basic auth
Update user factory

Set email and password
Update posts controller spec

To use devise instead of basic auth
Not sure why, but last-child stopped working
Add association expectations to User and Post
Add user_id to posts
Associate User with Post
Update controller to scope to current_user
Update tests to make Posts owned by User
Add association expectations to User and Comment
Add user_id to comments
Associate User to Comment
Authenticate CommentsController actions