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.”
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.