Sign in through GitHub
Applied Filters: Active Record x
HABTM Checkboxes (revised)
Episode #17Dec 22, 201116 comments

HABTM Checkboxes (revised)

A many-to-many association can be edited through checkboxes in a form. Here I show how to do this with a has_many through association compete with clickable labels. (6 minutes)
Thinking Sphinx (revised)
Episode #120Dec 09, 20117 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 #251Jan 31, 201140 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 #239Nov 07, 201020 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 #217Jun 07, 201045 comments

Multistep Forms

See how to create a multistep (wizard) form from scratch in this episode. (15 minutes)
Advanced Queries in Rails 3
Episode #215May 24, 201017 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 #212May 03, 201023 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 #211Apr 26, 201044 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)
Active Record Queries in Rails 3
Episode #202Feb 22, 201046 comments

Active Record Queries in Rails 3

Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes. (10 minutes)
Nested Model Form Part 1
Episode #196Jan 11, 2010104 comments

Nested Model Form Part 1

Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields. (11 minutes)