From: Wilson Bilkovich Date: 2006-11-01T12:26:02+09:00 Subject: Re: still more relentless non-repetition On 10/31/06, Giles Bowkett wrote: > > model = self.class.const_get t.capitalize > > model.find_by_contents t > > **that** looks like the way to do it. > > gracias! > ActiveSupport has a helper for this already. model = t.constantize model.find_by_contents(t)