RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: resources xModels x
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)
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)
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)