Ruby on Rails starter

In this edition of Stripe Developer Office Hours, follow along as CJ Avilla walks through the fundamentals of working with Rails and how those pertain to other office hours episodes. This episode does not implement a Stripe integration, however serves as foundational content for other episodes.

## Resources
- Code for this demo https://github.com/cjavilla-stripe/office-hours-rails
- Rails web framework https://rubyonrails.org/
- curl command line tool https://curl.haxx.se/
- Stripe Webhooks Guide https://stripe.com/docs/webhooks/build
- Stripe Event Types https://stripe.com/docs/api/events/types
- Code: https://github.com/stripe-samples/developer-office-hours/tree/master/starter

## Table of contents

00:05 Introduction
02:50 Setup a new Rails application
03:59 File and directory tour
05:58 Configure API keys and dependencies
09:26 Test API config from Rails console
12:20 Controllers and actions
14:20 Routing
17:10 Add GET route to server to render JSON
21:27 Data models
24:30 Add create method to controller
27:00 Make POST request from front end
30:24 Dealing with CSRF
33:50 Make GET request from front end
38:00 Webhooks controller

## Presenter
CJ Avilla, Developer Advocate at Stripe - https://twitter.com/cjav_dev

If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat.

What would you like to see in future episodes? https://docs.google.com/forms/d/e/1FAIpQLScx_BtXcakIJ_EFso-4-fnCrTVFXxsh-5BPM-SdhNG6W7kzbw/viewform?usp=sf_link
#Stripe #Payments