RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: migrations xForms x
Dynamic Forms
Episode #403 – Jan 27, 2013 – 120 comments

Dynamic Forms

Learn how to add fields to a form dynamically using another form, complete with custom field types. It's fieldception! (14 minutes)
OmniAuth Identity
Episode #304 – Dec 05, 2011 – 85 comments

OmniAuth Identity

With the release of OmniAuth 1.0 there is a new Identity strategy which allows users to register/login with a password if they don't want to use an external provider. (11 minutes)
Advanced Search Form (revised)
Episode #111 – Nov 17, 2011 – 61 comments

Advanced Search Form (revised)

It is often best to use a GET request when submitting a search form, however if it is an advanced search form with a lot of fields then this may not be ideal. Here I show how to create a search resource to handle this. (6 minutes)
Nested Model Form Part 1
Episode #196 – Jan 11, 2010 – 184 comments

Nested Model Form Part 1

Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields. (11 minutes)
Validations in Rails 3
Episode #211 – Apr 26, 2010 – 59 comments

Validations in Rails 3

Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model. (9 minutes)
Formtastic Part 1
Episode #184 – Oct 19, 2009 – 78 comments

Formtastic Part 1

Formtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options. (10 minutes)
Formtastic Part 2
Episode #185 – Oct 26, 2009 – 74 comments

Formtastic Part 2

Learn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling. (9 minutes)
More on Virtual Attributes
Episode #167 – Jun 22, 2009 – 50 comments

More on Virtual Attributes

Use a virtual attribute to implement a simple tagging feature. In this episode I show you how to assign virtual attributes through a callback instead of a setter method. (7 minutes)