require 'rubygems' require 'couchrest' class Test < CouchRest::Model use_database CouchRest.database('http://localhost:5984/my_db') set_default :array => [] end >> n = Test.new => {"array"=>[], "couchrest-type"=>"Test"} >> Test.default[:array].object_id => 13129040 >> n['array'].object_id => 13129040 >> n['array'] << "Hello, kitty" => ["Hello, kitty"] >> Test.default[:array] => ["Hello, kitty"] >> n2 = Test.new => {"array"=>["Hello, kitty"], "couchrest-type"=>"Test"}