RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rails x
Active Model
Episode #219 – Jun 21, 2010 – 53 comments

Active Model

In Rails 3 the non-database functionality of Active Record is extracted out into Active Model. This allows you to cleanly add validations and other features to tableless models. (6 minutes)
Trees with Ancestry
Episode #262 – Apr 18, 2011 – 84 comments

Trees with Ancestry

The Ancestry gem works like a tree but also allows us to fetch deeply nested messages in a single query. It provides a method to arrange them after fetching. (9 minutes)
Nested Model Form Part 2
Episode #197 – Jan 18, 2010 – 215 comments

Nested Model Form Part 2

Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery. (12 minutes)
Mobile Devices
Episode #199 – Feb 01, 2010 – 89 comments

Mobile Devices

Change the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface. (13 minutes)
Seed Data
Episode #179 – Sep 14, 2009 – 64 comments

Seed Data

Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files. (7 minutes)
Request Specs and Capybara
Episode #257 – Mar 14, 2011 – 54 comments

Request Specs and Capybara

Request specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium. (13 minutes)
Touch and Cache
Episode #172 – Jul 27, 2009 – 52 comments

Touch and Cache

Rails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode. (6 minutes)
OmniAuth Part 2
Episode #236 – Oct 13, 2010 – 92 comments

OmniAuth Part 2

In this episode we continue our look at integrating OmniAuth with devise. Here I show how to set up new users with validations. (15 minutes)
Guard
Episode #264 – May 02, 2011 – 57 comments

Guard

Guard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more. (8 minutes)
Simple OmniAuth
Episode #241 – Nov 22, 2010 – 90 comments

Simple OmniAuth

Authentication is incredibly simple to add with just OmniAuth if you don't need username/password or multiple authentications per user. (9 minutes)