RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Free Episodes x
Subversion on Rails
Episode #36May 25, 200758 comments

Subversion on Rails

This episode will walk you through setting up a Rails project on subversion. It covers some helpful tips and gotchas you may experience along the way. (8 minutes)
Custom REST Actions
Episode #35May 23, 200765 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, 200733 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, 200759 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, 200748 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, 200746 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, 200766 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, 200762 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, 200743 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, 200739 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)