Hi all,
Here’s another little plugin I wrote to use AR models without tables. It’s dead simple, just extend from ActiveRecord::BaseWithoutTable instead of ActiveRecord::Base:
class Contact < ActiveRecord::BaseWithoutTable
column :name, :string
column :email_address, :string
column :message, :text
validates_presence_of :name, :email_address, :message
end
You can now use this model just like you would use a regular model based on a table.
Any problems, let me know.
-Jonathan.