RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: nested xFree Episodes x
Nested Model Form Part 1
Episode #196Jan 11, 2010184 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)
Nested Model Form Part 2
Episode #197Jan 18, 2010215 comments

Nested Model Form Part 2

Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery. (12 minutes)
Trees with Ancestry
Episode #262Apr 18, 201184 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 Resources
Episode #139Dec 08, 200866 comments

Nested Resources

In this episode I show how to nest resources through routing and go into some new additions in Rails 2.2. (10 minutes)
Ransack
Episode #370Aug 03, 201293 comments

Ransack

Ransack allows you to easily build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page. (10 minutes)
Sass Basics
Episode #268May 30, 201166 comments

Sass Basics

Sass extends CSS with variables, nesting, mixins and more. Here I show how to convert plain CSS to SCSS in a Rails 3.1 app. (13 minutes)
Pry with Rails
Episode #280Aug 22, 201178 comments

Pry with Rails

Pry is an alternative to IRB and sports many great features. Here I show how to integrate it into a Rails app, and how it can aid in debugging. (8 minutes)
Authorization with CanCan
Episode #192Dec 14, 2009114 comments

Authorization with CanCan

CanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode. (15 minutes)
Polymorphic Association
Episode #154Mar 23, 2009125 comments

Polymorphic Association

Polymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer. (8 minutes)