5.8 List All Posts

We still need a way to list all our posts, so let's do that. We'll use a
specific route from config/routes.rb:

posts GET    /posts(.:format)          posts#index

And an action for that route inside the PostsController in the
app/controllers/posts_controller.rb file:

def index
  @posts = Post.all
end