From: Christopher Swasey Date: 2008-03-03T18:47:20+09:00 Subject: Re: Typecast On 3/3/08, Sijo Kg wrote: > Hi > I have an ActiveRecord class ServiceDesk and a string "ServiceDesk" > .How can I convert the string "ServiceDesk" to create a new object of > the class ServiceDesk? > > Concept is made clear below. > > > model = "ServiceDesk" // Now the variable, model, contains the string > "ServiceDesk" which is the name of an active record class. > Kernel.const_get(model) Christopher