RailsCasts Pro episodes are now free!

Learn more or hide this

RJS Tips
Episode #45 – Jun 15, 2007 – 46 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 #44 – Jun 13, 2007 – 35 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 #43 – Jun 11, 2007 – 99 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 #42 – Jun 08, 2007 – 36 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 #41 – Jun 06, 2007 – 56 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 #40 – Jun 04, 2007 – 37 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 #39 – Jun 01, 2007 – 45 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 #38 – May 30, 2007 – 34 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 #37 – May 28, 2007 – 134 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)
Subversion on Rails
Episode #36 – May 25, 2007 – 58 comments

Subversion on Rails

This episode will walk you through setting up a Rails project on subversion. It covers some helpful tips and gotchas you may experience along the way. (8 minutes)