RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Free Episodes x
Hackers Love Mass Assignment
Episode #26 – May 02, 2007 – 67 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)
SQL Injection
Episode #25 – Apr 30, 2007 – 37 comments

SQL Injection

One of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it. (5 minutes)
The Stack Trace
Episode #24 – Apr 27, 2007 – 46 comments

The Stack Trace

The stack trace can be a very useful tool when it comes to debugging. Learn the ins and outs of how the stack trace works in this episode. Note: I am using an older version of the Rails bundle here so it might be a little different than yours. The command in the newer version is called Install Plugin and requires you to type textmate_footnotes in the search. (4 minutes)
Counter Cache Column
Episode #23 – Apr 25, 2007 – 69 comments

Counter Cache Column

If you need to display the record count for a has_many association, you can improve performance by caching that number in a column. (7 minutes)
Eager Loading
Episode #22 – Apr 23, 2007 – 54 comments

Eager Loading

One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode! (4 minutes)
Super Simple Authentication
Episode #21 – Apr 20, 2007 – 77 comments

Super Simple Authentication

The final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode will cover a few techniques including the simple solution used for this site. (6 minutes)
Restricting Access
Episode #20 – Apr 18, 2007 – 53 comments

Restricting Access

In this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features. (4 minutes)
Where Administration Goes
Episode #19 – Apr 16, 2007 – 53 comments

Where Administration Goes

This is the first part of a three part series on building an administration system. Many developers choose to separate it completely from the public side of the site by placing it into an admin subdirectory. This episode will show you an alternative and often better solution. (5 minutes)
Looping Through Flash
Episode #18 – Apr 13, 2007 – 35 comments

Looping Through Flash

Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash. (1 minute)
HABTM Checkboxes
Episode #17 – Apr 11, 2007 – 115 comments

HABTM Checkboxes

It is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that. (6 minutes)