December 2010
1 post
1 tag
Using validates_associated with composed_of and...
What composed_of is for (Skip to the problem) Chances are you’ve needed to serialize a complex value to a database—a mailing address, for example. An address is composed of several strings, but it is taken all together as a single value. Active Record’s composed_of macro allows you to control how such a value is serialized to your database. Your database could have fields named...
Dec 30th
1 note