Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Custom REST Actions
Episode #35May 23, 200744 comments

Custom REST Actions

REST adds many constraints. It restricts your controllers to seven actions. Normally this is okay, but sometimes you need to add your own custom actions. Learn how in this episode. (8 minutes)
Named Routes
Episode #34May 21, 200713 comments

Named Routes

When you add a custom route, make it a named route so you have url helper methods to easily link to that new route. See episode for details. (6 minutes)
Making a Plugin
Episode #33May 18, 200730 comments

Making a Plugin

You can sometimes remove a lot of duplication by generating methods dynamic. In this episode I will show you how to create a plugin which does exactly that. (7 minutes)
Time in Text Field
Episode #32May 16, 200725 comments

Time in Text Field

Although Rails does allow you to edit time attributes with text fields, it's not very flexible. In this episode you will learn how to use a virtual attribute to format the time to your liking. (5 minutes)
Formatting Time
Episode #31May 14, 200720 comments

Formatting Time

Learn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use. (5 minutes)
Pretty Page Title
Episode #30May 11, 200747 comments

Pretty Page Title

If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages. (5 minutes)
group_by Month
Episode #29May 09, 200735 comments

group_by Month

Learn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly. (5 minutes)
in_groups_of
Episode #28May 07, 200719 comments

in_groups_of

Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha. (4 minutes)
Cross Site Scripting
Episode #27May 04, 200715 comments

Cross Site Scripting

Another common security issue is cross site scripting. In this episode you will see why it is so important to escape any HTML a user may submit. (5 minutes)
Hackers Love Mass Assignment
Episode #26May 02, 200733 comments

Hackers Love Mass Assignment

Your site may be at risk! When using mass assignment, you are giving the user complete control over that model and its associations. See how a hacker might use this vulnerability and learn how to stop it in this episode. (6 minutes)