RailsCasts Pro episodes are now free!

Learn more or hide this

Formtastic Part 2
Episode #185Oct 26, 200974 comments

Formtastic Part 2

Learn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling. (9 minutes)
Formtastic Part 1
Episode #184Oct 19, 200978 comments

Formtastic Part 1

Formtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options. (10 minutes)
Gemcutter & Jeweler
Episode #183Oct 12, 200951 comments

Gemcutter & Jeweler

Gemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem. (7 minutes)
Cropping Images
Episode #182Oct 05, 2009144 comments

Cropping Images

Present a slick user interface for cropping image attachments using Jcrop and Paperclip. (14 minutes)
Include vs Joins
Episode #181Sep 28, 200973 comments

Include vs Joins

The :include and :joins options for the find method can be a little confusing because they are so similar. In this episode I show specifically when to use which option. (11 minutes)
Finding Unused CSS
Episode #180Sep 21, 200955 comments

Finding Unused CSS

Over time a CSS file can become large and filled with unused selectors. In this episode I show how to use the Deadweight gem to determine which CSS selects you can remove. (8 minutes)
Seed Data
Episode #179Sep 14, 200964 comments

Seed Data

Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files. (7 minutes)
7 Security Tips
Episode #178Sep 07, 200964 comments

7 Security Tips

Security is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection. (14 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)
Searchlogic
Episode #176Aug 24, 200996 comments

Searchlogic

Searchlogic makes searching models easier than ever with its assortment of named scopes. In this episode I show you how to create simple and advanced searches. (13 minutes)