Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (17 sloc) 1000 Bytes
= ActiveRecordBaseWithoutTable
If you find this plugin useful, please consider a donation to show your support!
Email address:
== Instructions
* For edge Rails r7315 or above use
Get the power of ActiveRecord models, including validation, without having a table in the database.
class Contact < ActiveRecord::BaseWithoutTable
column :name, :string
column :email_address, :string
column :message, :text
validates_presence_of :name, :email_address, :string
This model can be used just like a regular model based on a table, except it will never be saved to the database.
There is a good blog post available on the plugin:
Any bugs, questions, comments please feel free to email me: