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;')
|
| Published on November 13th, 2007 | | Posted by Roman Mackovcak |

February 16th, 2008 at 16:11
Nice. Worked like a champ.