From: Sjoerd Andringa Date: 2008-10-19T19:04:32+09:00 Subject: Re: Using a result as a constant object? If the ActiveRecord model already exists you can just call constantize on the string containing the model name: class SomeModel < ActiveRecord::Base; end model_name = "SomeModel" # or in your case fetch this from a database ar_model = model_name.constantize ar.model.find(120) -- Posted via http://www.ruby-forum.com/.