RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: json x
Active Model Serializers
Episode #409Mar 09, 2013139 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)
Ember Part 2
Episode #410Mar 12, 2013140 comments

Ember Part 2

Here we continue our look into Ember.js. First we add a JSON API to persist the entries through ember-data. Then we finish up the project by adding a computed property and a view object. (14 minutes)
Batch API Requests
Episode #414Apr 27, 2013215 comments

Batch API Requests

Here I demonstrate how to perform bulk API operations though a single request using Rack middleware. This is great if you need to trigger multiple actions at once such as if the user goes offline. (18 minutes)
Handling Exceptions (revised)
Episode #53Apr 20, 2013209 comments

Handling Exceptions (revised)

By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. (11 minutes)
AngularJS
Episode #405Feb 05, 2013243 comments

AngularJS

AngularJS is an awesome framework for easily creating rich, client-side applications. Its powerful bindings allow you to do a lot with very little code. Here I show how to integrate Angular with a Rails app. (16 minutes)
REST API Versioning
Episode #350May 16, 2012108 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)
Template Handlers
Episode #379Sep 04, 201267 comments

Template Handlers

Here I will demonstrate creating two template handlers. One for Ruby which is great for JSON or CSV formats. Another for interpreting Markdown which is useful for informational content. (12 minutes)
Private Pub
Episode #316Jan 16, 2012133 comments

Private Pub

Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON. (7 minutes)
RABL
Episode #322Feb 08, 201264 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)
Jbuilder
Episode #320Jan 30, 201278 comments

Jbuilder

Jbuilder provides a DSL for generating JSON. It includes a template engine which allows you to create complex responses with helpers and conditions. (8 minutes)