RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: session xControllers x
Service Objects
Episode #398Dec 18, 2012114 comments

Service Objects

Models can quickly become a grab-bag of unrelated methods if behavior is constantly being pushed from the controller. Here I show how to refactor this using Concerns and Service Objects. (12 minutes)
Dangers of Model in Session
Episode #13Apr 02, 200739 comments

Dangers of Model in Session

Be careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database. (5 minutes)
Mobile Devices
Episode #199Feb 01, 201089 comments

Mobile Devices

Change the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface. (13 minutes)
Going Back
Episode #131Oct 12, 200845 comments

Going Back

This episode demonstrates a couple ways to redirect the user back to a previous page. Applying this to your site can help minimize the user's need to press the back button. (4 minutes)
Site Wide Announcements
Episode #103Apr 28, 200858 comments

Site Wide Announcements

Sometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode. (13 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)
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)