Hey there! Check out HackerBooks.com - our latest project that let you search books from StackOverflow and HackerNews

Latest Screencasts

RailsCasts #238 Mongoid

Railscasts - 2010-11-01 - free

Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys.

Watch this screencast

RailsCasts #237 Dynamic attr_accessible

Railscasts - 2010-10-25 - free

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.

Watch this screencast

RailsCasts #219 Active Model

Railscasts - 2010-06-21 - free

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.

Watch this screencast

RailsCasts #196 Nested Model Form Part 1

Railscasts - 2010-01-11 - free

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.

Watch this screencast

RailsCasts #194 MongoDB and MongoMapper

Railscasts - 2009-12-28 - free

MongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.

Watch this screencast

RailsCasts #193 Tableless Model

Railscasts - 2009-12-21 - free

If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.

Watch this screencast

RailsCasts #177 Model Versioning

Railscasts - 2009-08-31 - free

If you need to keep track of a model's history of changes and switch between versions, consider using the vestal_versions gem like I show in this episode.

Watch this screencast

RailsCasts #167 More on Virtual Attributes

Railscasts - 2009-06-22 - free

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.

Watch this screencast

RailsCasts #132 Helpers Outside Views

Railscasts - 2008-10-20 - free

Have you ever wanted to access helper methods outside of the view layer? In this episode I show you a couple ways to do just that.

Watch this screencast

RailsCasts #121 Non Active Record Model

Railscasts - 2008-08-04 - free

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.

Watch this screencast