RailsCasts Pro episodes are now free!

Learn more or hide this

Time in Text Field

#32 Time in Text Field

May 16, 2007 | 5 minutes | Active Record, Forms
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.
  • Download:
  • mp4Full Size H.264 Video (8.83 MB)
  • m4vSmaller H.264 Video (5.81 MB)
  • webmFull Size VP8 Video (15.1 MB)
  • ogvFull Size Theora Video (10.3 MB)