Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Views x
Twitter Bootstrap Basics
Episode #328Feb 28, 2012104 comments

Twitter Bootstrap Basics

Twitter Bootstrap can help make beautiful web apps quickly by providing you with useful CSS and JavaScript. Here you will learn how to include it into Rails with the twitter-bootstrap-rails gem. (10 minutes)
Fragment Caching (revised)
Episode #90Feb 18, 201222 comments

Fragment Caching (revised)

If you need to cache a certain section of a page instead of the entire page, fragment caching is the way to go. Learn how caching is stored, how to create auto expiring caches, and more. (9 minutes)
Passing Data to JavaScript
Episode #324Feb 13, 201232 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)
HTTP Caching
Episode #321Jan 30, 201225 comments

HTTP Caching

With HTTP response headers you can the cache in the user's browser and proxies. Etags, Last-Modified, Cache-Control and Rack::Cache are all covered here (15 minutes)
Form Builders
Episode #311Dec 26, 201115 comments

Form Builders

Forms often follow a similar pattern with a lot of repetition. Learn how to clean up form views and remove duplication with the help of form builders. (12 minutes)
HABTM Checkboxes (revised)
Episode #17Dec 22, 201152 comments

HABTM Checkboxes (revised)

A many-to-many association can be edited through check boxes in a form. Here I show how to do this with a has_many through association complete with clickable labels. (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)
Dynamic Select Menus (revised)
Episode #88Nov 25, 201169 comments

Dynamic Select Menus (revised)

Do you need to dynamically change one select menu based on the value of another? Here I show how to filter states/provinces by a selected country using grouped options and a dab of CoffeeScript. (7 minutes)
Advanced Search Form (revised)
Episode #111Nov 17, 201126 comments

Advanced Search Form (revised)

It is often best to use a GET request when submitting a search form, however if it is an advanced search form with a lot of fields then this may not be ideal. Here I show how to create a search resource to handle this. (6 minutes)
Running JavaScript in Ruby
Episode #297Nov 07, 201124 comments

Running JavaScript in Ruby

Sometimes logic needs to be shared between the server-side (Ruby) and the client-side (JavaScript). Here I show how to run JavaScript directly in Ruby through ExecJS and therubyracer. (14 minutes)