http://storehouse.sakura.ne.jp/viewvc/viewvc.cgi/activemongo/?root=svn
そこそこできた。近々リリース予定。
require 'rubygems' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => 'mongodb', :database => 'mydb' ) class Emp < ActiveRecord::Base include ActiveMongo::Collections end Emp.create!(:foo => 'bar') Emp.create!(:zoo => 'baz') emps = Emp.find(:all, :conditions => ['foo = ?', 'bar']) emps.each do |i| i.hoge = 'fuga' end emp = Emp.find('4baf9085f15d3d042c000001') emp.destroy