RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Free Episodes x
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)
RJS Tips
Episode #45Jun 15, 200746 comments

RJS Tips

This episode is packed with little RJS goodies. Learn the different ways to access an element, how to add "if" conditions and how to apply an effect to multiple elements. (7 minutes)
Debugging RJS
Episode #44Jun 13, 200735 comments

Debugging RJS

RJS and AJAX can be difficult to debug. Many times you don't get any error message in the browser. Learn different techniques for solving these tricky problems in this episode. (7 minutes)
AJAX with RJS
Episode #43Jun 11, 200799 comments

AJAX with RJS

This episode will walk you through adding AJAX functionality to a form using RJS. See how to easily update multiple elements on a page. (11 minutes)
with_options
Episode #42Jun 08, 200736 comments

with_options

Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode. (3 minutes)
Conditional Validations
Episode #41Jun 06, 200756 comments

Conditional Validations

By default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See how to do that in this episode. (4 minutes)
Blocks in View
Episode #40Jun 04, 200737 comments

Blocks in View

If you try to create a helper method which accepts a block, you will run into a few gotchas. Learn the secrets of blocks in views in this episode. (9 minutes)
Customize Field Error
Episode #39Jun 01, 200745 comments

Customize Field Error

When a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don't want this behavior. In this episode you will see how to customize it. (3 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)
Simple Search Form
Episode #37May 28, 2007134 comments

Simple Search Form

A search form is quite different than other forms, this is because it does not deal with model's attributes. See a good way to add a simple search form in this episode. (6 minutes)