UPDATE! – Ruby ActiveRecord and Oracle: Auto Incrementing Primary Keys using Triggers
Well, it looks like this has been fixed in the latest versions of the Oracle enhanced adapter for ActiveRecord. It looks like there was a reorganization of the different components of the ActiveRecord/Adapter relationship that had originally led to this problem, according to the documentation submitted with the fix. Thanks to whomever was able to provide the patch; You just made my life a little bit easier.
Trackbacks
Use this link to trackback from your own site.
Are you sure about that? i am using the latest version and still need the set_create_method hack. can you pont me to the solution?
Well, when I found I needed to do an install on another system last July, it worked all of a sudden after I installed the base packages. It may have changed since then, as I haven’t been using AR lately.
Here is something that may help you out, however: http://blog.rayapps.com/category/oracle-enhanced/
It is an adapter for AR that is tailored for Oracle. It seems to be well maintained, with the last update being March 23rd. Good luck.