title: Rails - How to use variable as part of method name
body: <p>I am trying to add variable name into method_name in rails. I am getting error. </p>
  
  <pre>
  **Controller ACTION**
  =====================
  def my_action(state)
     method_#{state}
  end
  
  **Model methods**
  ====================
  def method_start
  end
  
  def method_end
  end
  </pre>
  
  <p>how to call method with variable name i am not getting.</p>