Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Free Episodes xControllers x
Complex Forms Part 1
Episode #73Oct 01, 2007153 comments

Complex Forms Part 1

Complex forms often lead to complex controllers, but that doesn't have to be the case. In this episode see how you can create multiple models through a single form while keeping the controller clean. (8 minutes)
Testing Controllers with RSpec
Episode #71Sep 17, 200736 comments

Testing Controllers with RSpec

Controllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it. (11 minutes)
Custom Routes
Episode #70Sep 10, 200715 comments

Custom Routes

In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters. (7 minutes)
OpenID Authentication
Episode #68Aug 27, 200753 comments

OpenID Authentication

Ever wonder how to implement OpenID authentication in your Rails app? This episode will show you how to add it to a site with an existing authentication system. (11 minutes)
restful_authentication
Episode #67Aug 20, 200797 comments

restful_authentication

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 which is good starting point to your authentication system. Watch this episode for details. (9 minutes)
Custom Helper Modules
Episode #64Jul 30, 200729 comments

Custom Helper Modules

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 this episode. (5 minutes)
Handling Exceptions
Episode #53Jul 04, 200720 comments

Handling Exceptions

When an exception is raised in development you get the full error along with the stack trace. In production, only a simple message is displayed. Learn why this is and how to customize the handling of exceptions. (8 minutes)
Update through Checkboxes
Episode #52Jul 02, 200722 comments

Update through Checkboxes

See how to select multiple items using checkboxes and perform an action on the selected items in this episode. (10 minutes)
Catch-all Route
Episode #46Jun 18, 200730 comments

Catch-all Route

Sometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all route. See how in this episode. (5 minutes)
Multibutton Form
Episode #38May 30, 200710 comments

Multibutton Form

If you have a form with multiple buttons, you can detect which button was clicked by checking the passed parameters. Learn how in this episode. (4 minutes)