I am trying to add variable name into method_name in rails. I am getting error.
**Controller ACTION** ===================== def my_action(state) method_#{state} end **Model methods** ==================== def method_start end def method_end end
how to call method with variable name i am not getting.