On Fri, Jul 18, 2008 at 2:01 PM, Stephen Ward <[EMAIL PROTECTED]> wrote: > The problem I'm currently trying to solve is this: there is a model > class in this rails app that does not have a corresponding database > table. In fact, there is a comment in the model class code that says: > "I admit this is a bit of a hack, since there is not [sic] 'XYZ' table > in the db".
Is the class actually using any ActiveRecord functionality? If so, there's got to be (or should be, anyways) some table or view somewhere. If there's not, just remove the " < ActiveRecord::Base" from the class definition. A model doesn't have to be derived from ActiveRecord, it can be any plain old class. Of course, if it's not ActiveRecord but needs persisting, you'll need to handle the persistence on your own. Jacob Fugal /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
