RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: resources x
OpenID with Authlogic
Episode #170Jul 13, 200972 comments

OpenID with Authlogic

Learn how to apply OpenID to an existing Authlogic setup as I show in this episode. This builds upon the app from episode 160. (11 minutes)
Model Versioning
Episode #177Aug 31, 200956 comments

Model Versioning

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. (9 minutes)
Non Active Record Model
Episode #121Aug 04, 200846 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)
Screen Scraping with ScrAPI
Episode #173Aug 03, 200957 comments

Screen Scraping with ScrAPI

Screen scraping is not pretty, but sometimes it's your only option to extract content from an external site. In this episode I show you how to fetch product prices using ScrAPI. (15 minutes)
Cron in Ruby
Episode #164Jun 01, 200970 comments

Cron in Ruby

Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby. (8 minutes)
Touch and Cache
Episode #172Jul 27, 200952 comments

Touch and Cache

Rails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode. (6 minutes)
Feed Parsing
Episode #168Jun 29, 200955 comments

Feed Parsing

Learn two different techniques for parsing an RSS feed using Feedzirra in this episode! (10 minutes)
More on Virtual Attributes
Episode #167Jun 22, 200950 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)
jQuery
Episode #136Nov 17, 2008114 comments

jQuery

How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS. (9 minutes)
Factories not Fixtures
Episode #158Apr 20, 200967 comments

Factories not Fixtures

Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records. (12 minutes)