RailsCasts Pro episodes are now free!

Learn more or hide this

Virtual Attributes

#16 Virtual Attributes

Apr 09, 2007 | 3 minutes | Active Record, Forms
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.
  • Download:
  • mp4Full Size H.264 Video (5.83 MB)
  • m4vSmaller H.264 Video (3.89 MB)
  • webmFull Size VP8 Video (9.36 MB)
  • ogvFull Size Theora Video (6.81 MB)