From: "ara.t.howard" Date: 2007-09-19T04:42:12+09:00 Subject: Re: [ANN] arrayfields-4.1.0 On Sep 18, 2007, at 8:41 AM, Stephen Bannasch wrote: > $ script/console > Loading development environment. >>> OtmlFile.find_by_path("../../concord/otrunk-examples/ >>> BasicExamples/basic_drawing.otml") > => #"basic_drawing.otml", > "id"=>"1", "path"=>"../../concord/otrunk-examples/BasicExamples/ > basic_drawing.otml"}> >>> require 'arrayfields' > => ["PseudoHash", "Arrayfields", "Pseudohash", "Fieldable", > "FieldedArray", "ArrayFields", "Fieldedarray"] >>> OtmlFile.find_by_path("../../concord/otrunk-examples/ >>> BasicExamples/basic_drawing.otml") thanks. cfp:~ > rails test --database=sqlite3 > /dev/null 2>&1 && cd test cfp:~/test > ./script/console Loading development environment. >> c = ActiveRecord::Base.connection => #, @translator=nil, @driver=#, @type_translation=false, @closed=false>, @last_verification=0, @runtime=0, @logger=#, @dev=#, @shift_size=1048576, @shift_age=0>, @formatter=nil, @default_formatter=#, @level=0, @progname=nil>> >> c.execute ' create table foos( a text, b text ) ' => [] >> class Foo < ActiveRecord::Base; end => nil >> Foo.create :a => '4', :b => '2' => #>, @attributes={"a"=>"4", "b"=>"2", "id"=>1}, @new_record=false> >> Foo.find_by_a '4' => #"4", "b"=>"2"}> >> Foo.find_by_b '2' => #"4", "b"=>"2"}> >> require 'arrayfields' => ["ArrayFields", "Fieldedarray", "Arrayfields", "PseudoHash", "Fieldable", "Pseudohash", "FieldedArray"] >> p Arrayfields.version "4.2.0" => nil >> Foo.find_by_a '4' => #"4", "b"=>"2"}> >> Foo.find_by_b '2' => #"4", "b"=>"2"}> on rubyforge now. a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama