models episodes

#219
Jun 21, 2010

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.
Tags: models
Download (11.7 MB, 6:47)
alternative download for iPod & Apple TV (10.9 MB, 6:47)
#194
Dec 28, 2009

MongoDB and MongoMapper

MongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.
Tags: models plugins
Download (24.1 MB, 13:13)
alternative download for iPod & Apple TV (15.3 MB, 13:13)
#167
Jun 22, 2009

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.
Tags: models forms
Download (12.4 MB, 7:44)
alternative download for iPod & Apple TV (8.4 MB, 7:44)
#121
Aug 04, 2008

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.
Tags: models
Download (18.8 MB, 12:51)
alternative download for iPod & Apple TV (14.8 MB, 12:51)
#119
Jul 21, 2008

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.
Tags: models
Download (25 MB, 13:26)
alternative download for iPod & Apple TV (17.4 MB, 13:26)
#76
Oct 22, 2007

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.
Tags: plugins models
Download (8.5 MB, 6:38)
alternative download for iPod & Apple TV (7.5 MB, 6:38)
#75
Oct 15, 2007

Complex Forms Part 3

In this third and final episode on complex forms I will show you how to edit a project and multiple tasks all in one form. This includes removing and adding tasks dynamically as well. See the show notes for updated code.
Download (25.7 MB, 16:11)
alternative download for iPod & Apple TV (20.5 MB, 16:11)

sponsored by:
if you want to help:
required:
Get Quicktime Player
Give Back to Open Source