SD Ruby Podcast

Episode 110: Converting Flat Data into Rich Ruby Objects with :composed_of

06.25.2012 - By SD RubyPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

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.

More episodes from SD Ruby Podcast