RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Controllers x
Page Caching
Episode #89Jan 20, 200834 comments

Page Caching

Page caching is an efficient way to cache stateless content. In this episode I will show you how to cache the dynamic javascript we created last week. (6 minutes)
HTTP Basic Authentication
Episode #82Dec 02, 200777 comments

HTTP Basic Authentication

Rails 2.0 offers an extremely easy way to do HTTP basic authentication. See how in this episode. (4 minutes)
Generating PDF Documents
Episode #78Nov 04, 200769 comments

Generating PDF Documents

In this episode I will show you how to create PDF documents using the excellent PDF::Writer gem. (7 minutes)
Destroy Without JavaScript
Episode #77Oct 29, 200744 comments

Destroy Without JavaScript

If the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue. (7 minutes)
Complex Forms Part 1
Episode #73Oct 01, 2007171 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, 200759 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, 200733 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, 200775 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, 2007123 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, 200747 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)