Ryan Bates

Episode 58: How to Make a Generator


over 4 years ago by Ryan Bates on Railscasts.
Rails comes with many built-in generators, but what if you want to customize them or make your own? Rails gives you a great way to do this which you will...

Episode 59: Optimistic Locking


over 4 years ago by Ryan Bates on Railscasts.
When two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic...

Episode 60: Testing without Fixtures


over 4 years ago by Ryan Bates on Railscasts.
Tests which rely heavily on fixtures are brittle and can be difficult to maintain. This episode will show a couple techniques for creating tests which don...

Episode 61: Sending Email


over 4 years ago by Ryan Bates on Railscasts.
This is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail....

Episode 62: Hacking ActiveRecord


over 4 years ago by Ryan Bates on Railscasts.
Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn't support this, but that doesn't mean we can't add it. This episode...

Episode 63: Model Name in URL


over 4 years ago by Ryan Bates on Railscasts.
By default, Rails uses the model's id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the...

Episode 64: Custom Helper Modules


over 4 years ago by Ryan Bates on Railscasts.
Rails designates one helper module per controller, but that shouldn't stop you from making custom helper modules to help structure the code. Learn how in...

Episode 65: Stopping Spam with Akismet


over 4 years ago by Ryan Bates on Railscasts.
The Railscasts site has been getting a lot of comment spam in the past, but no longer. In this episode I will show you how I solved this problem by using...

Episode 66: Custom Rake Tasks


over 4 years ago by Ryan Bates on Railscasts.
Rake is one of those tools that you don't realize how powerful it is until you start using it. In this episode you will learn how to create custom rake...

Episode 67: restful_authentication


over 4 years ago by Ryan Bates on Railscasts.
Need multiple user authentication? If so, the restful_authentication plugin is a great way to go. It will generate some basic authentication code for you...