Embedded Ratings Revision d8e6bbea3275 (Tue Dec 16 2008 at 17:22) - Diff Link to this snippet: https://friendpaste.com/2ZMho7WuSbOGLeIvDcP6qm Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617require 'rubygems'require 'relaxdb'class CD < RelaxDB::Document property :title property :tracksendthp = CD.new(:title => "The Holy Pictures")tracks = []tracks << {"title" => "I Heard Wonders", "length" => "5:35"}tracks << {"title" => "Story Of The Ink", "length" => "5:23"}thp.tracks = tracksthp.savethp = RelaxDB.load(thp._id)puts thp.tracks[1]["title"]