RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: api xFree Episodes x
REST API Versioning
Episode #350 – May 16, 2012 – 108 comments

REST API Versioning

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. Here I show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers. (10 minutes)
The Rails API Gem
Episode #348 – May 09, 2012 – 74 comments

The Rails API Gem

It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON. (9 minutes)
Securing an API
Episode #352 – May 23, 2012 – 74 comments

Securing an API

There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header. (7 minutes)
Active Model Serializers
Episode #409 – Mar 09, 2013 – 139 comments

Active Model Serializers

The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output. (10 minutes)
What's New in Rails 4
Episode #400 – Jan 04, 2013 – 115 comments

What's New in Rails 4

Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features. (20 minutes)
RABL
Episode #322 – Feb 08, 2012 – 64 comments

RABL

RABL - Ruby API Builder Language - provides a DSL for generating JSON or XML responses in a Ruby application. Learn how to share and configure complex JSON data in this episode. (8 minutes)
SOAP with Savon
Episode #290 – Oct 17, 2011 – 46 comments

SOAP with Savon

Communicating with a SOAP API can be a daunting task. Savon makes this easier by presenting the SOAP API through a Ruby interface. (9 minutes)
Billing with Stripe
Episode #288 – Oct 10, 2011 – 125 comments

Billing with Stripe

Stripe is a full-stack payment solution with very reasonable pricing and is easy to setup. See how to add it to a Rails application here. Currently only available in the US. (16 minutes)
Reading the API
Episode #49 – Jun 25, 2007 – 46 comments

Reading the API

The Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites for accessing the API. Update: sorry about the broken movie, it should work now. (6 minutes)
Action Mailer in Rails 3
Episode #206 – Mar 22, 2010 – 78 comments

Action Mailer in Rails 3

Action Mailer has been rewritten for Rails 3 providing a much cleaner API with its use of the Mail gem. (12 minutes)