From: sayoyo@... Date: 2006-01-12T00:38:04+09:00 Subject: how can I give a name to an anonymous class Hi, I'm try to create a generic anonymous class, and I want to set the class name of the class, however I can't find a function which allow me to do this, the only way I can do this is actually assigner the newly create class to a constant. the classname will be (in my case) GenActRec::className. Does someone know how to remove the "GenActRec::" ??? Does someone know is there another way to do this???? this is my generic class: class GenActRec < ActiveRecord::Base def self.buildNewTableClass(className, tableName) genClass = Class.new(GenActRec) const_set("#{className.to_s}", genClass) genClass.set_table_name tableName genClass.reset_column_information() return genClass end end Thanks you very much Sayoyo