RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Active Record x
Globalize3
Episode #338 – Apr 04, 2012 – 67 comments

Globalize3

Rails has great internationalization (I18n) support making it easy to translate static text into other languages, but how do we translate database content? Learn how using Globalize 3 in this episode. (5 minutes)
Hackers Love Mass Assignment (revised)
Episode #26 – Mar 08, 2012 – 66 comments

Hackers Love Mass Assignment (revised)

One of the most common security issues in a Rails application is the mass-assignment vulnerability which allows a user to set any attribute on the model. Learn how to prevent it in this episode. (6 minutes)
HABTM Checkboxes (revised)
Episode #17 – Dec 22, 2011 – 94 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)
Thinking Sphinx (revised)
Episode #120 – Dec 09, 2011 – 44 comments

Thinking Sphinx (revised)

Sphinx is a full-text search engine for use with MySQL or PostgreSQL. Learn how to add Thinking Sphinx by defining an index on your model and searching with various options. (10 minutes)
MetaWhere & MetaSearch
Episode #251 – Jan 31, 2011 – 65 comments

MetaWhere & MetaSearch

MetaWhere provides a way to do complex find conditions without SQL in Active Record. MetaSearch makes it easy to create search forms with many find options. (8 minutes)
ActiveRecord::Relation Walkthrough
Episode #239 – Nov 07, 2010 – 42 comments

ActiveRecord::Relation Walkthrough

The new Active Record query methods in Rails 3 might seem like magic at first. But in this episode I unravel how it works by browsing the Rails 3 source code. (11 minutes)
Multistep Forms
Episode #217 – Jun 07, 2010 – 92 comments

Multistep Forms

See how to create a multi-step (wizard) form from scratch in this episode. (15 minutes)
Advanced Queries in Rails 3
Episode #215 – May 24, 2010 – 53 comments

Advanced Queries in Rails 3

Learn some advanced techniques regarding named scopes and get an introduction to Arel in this episode. (9 minutes)
Refactoring & Dynamic Delegator
Episode #212 – May 03, 2010 – 50 comments

Refactoring & Dynamic Delegator

Learn how to refactor a set of conditional Active Record queries using a Dynamic Delegator. (7 minutes)
Validations in Rails 3
Episode #211 – Apr 26, 2010 – 59 comments

Validations in Rails 3

Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model. (9 minutes)