title: Rails: Using Eval to call another action
body: <p>I know calling other actions from the controller isn't approved, but code I've got is using eval() to do exactly that.</p>
  
  <pre><code>  if @payment.save
      eval("pay_with_#{params[:method]}")
    end 
  </code></pre>
  
  <p>the method parameter is set (its value is realex) and the payment is saving, yet the pay_with_realex function isn't being called. Is this presumably to do with eval()??</p>
  
  <p>What would you suggest as an alternative?</p>