I have the name of a class and I want to create an instance of that class so that I can loop through each rails attribute that is present in the schema of that class.
Very simple in Rails: use String#constantize
class_name = "MyClass" instance = class_name.constantize.new