Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Free Episodes xViews x
Passing Data to JavaScript
Episode #324Feb 13, 201226 comments

Passing Data to JavaScript

There are a variety of ways to pass variables from a Rails application to JavaScript. Here I show three techniques: a script tag, a data attribute, and the Gon gem. (6 minutes)
In-Place Editing
Episode #302Nov 28, 201160 comments

In-Place Editing

Edit an attribute in-place without leaving a page using the Best In Place gem. Learn how to add validations and support for various field types. (8 minutes)
Mercury Editor
Episode #296Nov 07, 201173 comments

Mercury Editor

Mercury allows you to edit a section of HTML directly in the web browser through a WYSIWYG editor. Here I show how to integrate Mercury into a Rails app and save the changes back to the database. (11 minutes)
Draper
Episode #286Oct 03, 201150 comments

Draper

Clean up complex view logic using Draper. This gem provides decorators (much like presenters) which bundles view logic in an object oriented fashion. In this episode I do a step-by-step refactoring of a complex template into a decorator. (12 minutes)
Markdown with Redcarpet
Episode #272Jun 27, 201166 comments

Markdown with Redcarpet

Redcarpet is an easy-to-use gem which interprets Markdown. Here I show how to customize it and add syntax highlighting through Pygments and Albino. (6 minutes)
Template Inheritance
Episode #269Jun 06, 201124 comments

Template Inheritance

In Rails 3.1 the controller inheritance also applies to the view layer. Here I show how to add an application template which is shared by all views, and a lookup path for overriding templates based on the subdomain. (8 minutes)
HTTP Streaming
Episode #266May 16, 201132 comments

HTTP Streaming

HTTP Streaming allows the browser to start processing the HTML response while the Rails app is still processing the rest of the request. (9 minutes)
Decent Exposure
Episode #259Mar 28, 201139 comments

Decent Exposure

The decent_exposure gem makes it convenient to share controller data with the view through methods instead of instance variables. (9 minutes)
I18n Backends
Episode #256Mar 07, 201137 comments

I18n Backends

Internationalization is easy to add in Rails, but the YAML files can be difficult to manage. In this episode I show how to use Redis for managing the translations through a web interface. (11 minutes)
Sortable Table Columns
Episode #228Aug 23, 201065 comments

Sortable Table Columns

Here I walk you through adding the ability to sort table columns in ascending or descending order by clicking the header. (10 minutes)