/bin/recykl » Blog Archive » Calling Oracle stored procedure from rails

Calling Oracle stored procedure from rails

Sometimes it is necessary to reuse existing logic from stored procedures. This line of code shows how to call a stored procedure in Oracle.

ActiveRecord::Base.connection.execute('BEGIN do_the_calculation; END;')

One Response to “Calling Oracle stored procedure from rails”

  1. twopigs Says:

    Nice. Worked like a champ.