RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: virtual attributes xForms x
More on Virtual Attributes
Episode #167Jun 22, 200950 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)
Virtual Attributes (revised)
Episode #16Jul 20, 201271 comments

Virtual Attributes (revised)

Virtual attributes are a clean way to add form fields that do not map directly to the database. Here I show how to handle validations, associations, and more. (11 minutes)
Edit Multiple (revised)
Episode #165Feb 25, 2013105 comments

Edit Multiple (revised)

Editing one record at a time can be tedious work. Here you will learn three different ways to edit multiple records at once using checkboxes. (15 minutes)
Virtual Attributes
Episode #16Apr 09, 200765 comments

Virtual Attributes

Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database. (3 minutes)
Edit Multiple
Episode #165Jun 08, 200951 comments

Edit Multiple

Use checkboxes to select multiple records and edit them all in one form as shown in this episode. With virtual attributes you can even edit values relatively! (14 minutes)
Time in Text Field
Episode #32May 16, 200748 comments

Time in Text Field

Although Rails does allow you to edit time attributes with text fields, it's not very flexible. In this episode you will learn how to use a virtual attribute to format the time to your liking. (5 minutes)
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)