SD Ruby Podcast
SD Ruby Podcast
SD Ruby
Episode 110: Converting Flat Data into Rich Ruby Objects with :composed_of
22 minutes Posted Jun 25, 2012 at 6:08 pm.
0:00
22:28
Download MP3
Show notes
Storing simple data as model attributes in a database is easy to do in Rails, but sometimes we want to handle and manipulate data that is more than just a string or a number.The :composed_of macro in ActiveRecord gives us that ability, and it's simpler than you think. Chris McCann shows us how.