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.
How would I go about doing that?
- I have the name as a string of the class I want to check
- I guess I need to instantiate a class instance so that I can
- Loop through it's attributes and print them.