Say that I have a model name stored in a variable:
"#{class_name.singularize}"
from another controller. I want to see the columns defined for this model. I tried
send("#{class_name.singularize}.columns")
but he is trying to call Page.columns as a method of the class I'm working on now, not the Page class. Any ideas on how to do this?
ruby ruby-on-rails ruby-on-rails-3
j_mcnally
source share