title: How to call a Class method dynamically in ruby
body: <p>Say I have the model name saved in a variable:</p>
  
  <pre><code>"#{class_name.singularize}"
  </code></pre>
  
  <p>from another controller I want to see the columns defined for this model. I tried</p>
  
  <pre><code>send("#{class_name.singularize}.columns")
  </code></pre>
  
  <p>but its trying to call <code>Page.columns</code> as a method of the class I am currently working in rather than the <code>Page</code> class. Any ideas on how to do this?</p>