I know calling other actions from the controller isn't approved, but code I've got is using eval() to do exactly that.
if @payment.save
eval("pay_with_#{params[:method]}")
end
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()??
What would you suggest as an alternative?
You could use
Object.send