From: Glen Holcomb Date: 2007-08-14T05:43:34+09:00 Subject: Working with classname that is stored in a string ------=_Part_156841_11369119.1187037818954 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'm trying to DRY my latest Rails project and have run into a problem for which the answer appears to lie in my personal sea of ignorance. I want to write a helper that will let me set the fields I want to display before I start looping. Basically I wish to pass the class name and an array of fields to be ignored to the helper and have it give me an array of the fields I want. The problem is this, I have no idea how to get Ruby to treat the string I pass as a classname. I did some searching and didn't find anything that looked like it would solve my problem. I'd rather not have to create a new instance if I don't have to. Thanks, Glen -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_156841_11369119.1187037818954--