RailsCasts Pro episodes are now free!

Learn more or hide this

Create Model Through Text Field

#57 Create Model Through Text Field

Jul 13, 2007 | 5 minutes | Active Record, Views, Forms
Let's say you provide a select menu for setting which category a given product belongs to, but you also want the option of creating a new category by typing the name in a text field. See a great way to do that in this episode.
  • Download:
  • mp4Full Size H.264 Video (8.26 MB)
  • m4vSmaller H.264 Video (5.61 MB)
  • webmFull Size VP8 Video (17.1 MB)
  • ogvFull Size Theora Video (11.2 MB)