RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: forms xControllers x
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)
Destroy without JavaScript (revised)
Episode #77Jun 16, 201248 comments

Destroy without JavaScript (revised)

A destroy link in Rails does not work without JavaScript. In this episode I show two techniques for gracefully degrading destroy links: button_to and a delete action. (8 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)
Beta Invitations
Episode #124Aug 25, 200880 comments

Beta Invitations

You know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode. (22 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)
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)