Ryan Bates
Episode 29: group_by Month
almost 5 years ago by Ryan Bates on Railscasts.
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...
Episode 28: in_groups_of
almost 5 years ago by Ryan Bates on Railscasts.
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....
Episode 27: Cross Site Scripting
almost 5 years ago by Ryan Bates on Railscasts.
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....
Episode 26: Hackers Love Mass Assignment
almost 5 years ago by Ryan Bates on Railscasts.
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...
Episode 25: SQL Injection
almost 5 years ago by Ryan Bates on Railscasts.
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...
Episode 24: The Stack Trace
almost 5 years ago by Ryan Bates on Railscasts.
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...
Episode 23: Counter Cache Column
almost 5 years ago by Ryan Bates on Railscasts.
If you need to display the record count for a has_many association, you can improve performance by caching that number in a column....
Episode 22: Eager Loading
almost 5 years ago by Ryan Bates on Railscasts.
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!...
Episode 21: Super Simple Authentication
almost 5 years ago by Ryan Bates on Railscasts.
The final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode...
Episode 20: Restricting Access
almost 5 years ago by Ryan Bates on Railscasts.
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...
