RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Free Episodes xModels 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)
ActiveAttr
Episode #326 – Feb 21, 2012 – 54 comments

ActiveAttr

ActiveAttr provides what Active Model left out. If you need to create a table-less model with features similar to Active Record, watch this episode. (5 minutes)
Mongoid
Episode #238 – Nov 01, 2010 – 81 comments

Mongoid

Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys. (11 minutes)
Dynamic attr_accessible
Episode #237 – Oct 25, 2010 – 65 comments

Dynamic attr_accessible

It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode. (9 minutes)
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)
MongoDB and MongoMapper
Episode #194 – Dec 28, 2009 – 76 comments

MongoDB and MongoMapper

MongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode. (13 minutes)
More on Virtual Attributes
Episode #167 – Jun 22, 2009 – 50 comments

More on Virtual Attributes

Use a virtual attribute to implement a simple tagging feature. In this episode I show you how to assign virtual attributes through a callback instead of a setter method. (7 minutes)
Non Active Record Model
Episode #121 – Aug 04, 2008 – 46 comments

Non Active Record Model

This episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database. (12 minutes)
Session Based Model
Episode #119 – Jul 21, 2008 – 63 comments

Session Based Model

If you have a lot of logic associated with the data inside a session, you'll need some central location to put this logic. See how to create a session based model in this episode. (13 minutes)
scope_out
Episode #76 – Oct 22, 2007 – 32 comments

scope_out

The scope_out plugin will generate several helpful find methods for you automatically! It's the best way to move the find conditions into your model. Watch this episode for details. (6 minutes)