CWP panel

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
– Rails web framework
– curl command line tool
– Stripe Webhooks Guide
– Stripe Event Types
– Code:

## 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 –

If you have a question, please feel free to reach out to our support team at or on Discord at

What would you like to see in future episodes?

source

 

To see the full content, share this page by clicking one of the buttons below

Related Articles

Leave a Reply