Hi all, so I’m developing an app in Rails (first time, have been using
Ruby a while), and I’m running into an issue with ActiveRecord. It
doesn’t seem to like Oracle views.
We have a large application where most stuff happens in Oracle stored
procedures. But, for displaying and joining this data I was hoping to
use ActiveRecord and Rails. When I try to simply say:
class Environment < ActiveRecord::Base
ORA-24372: invalid object for describe
I assume ActiveRecord is doing “describe environments” magic to create
accessors/etc. (Note: I get this same error trying this from sqlplus as
you can’t describe views)
Has anyone tried this and/or had success/failure? I’d like to be able
to use views with Rails (and ActiveRecord is not a requirement; just
trying to understand everything).