RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Controllers x
Handling Exceptions
Episode #53Jul 04, 200740 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, 200744 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, 200751 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, 200734 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)
Custom REST Actions
Episode #35May 23, 200765 comments

Custom REST Actions

REST adds many constraints. It restricts your controllers to seven actions. Normally this is okay, but sometimes you need to add your own custom actions. Learn how in this episode. (8 minutes)
Named Routes
Episode #34May 21, 200733 comments

Named Routes

When you add a custom route, make it a named route so you have url helper methods to easily link to that new route. See episode for details. (6 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)