Sha256: 98bb79912edfea3aef24c34e7b26e39df539823ebd99379c24e1807d0a117077
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
= ActiveRecordBaseWithoutTable If you find this plugin useful, please consider a donation to show your support! http://www.paypal.com/cgi-bin/webscr?cmd=_send-money Email address: jonathan.viney@gmail.com == Instructions * For edge Rails r7315 or above use http://svn.viney.net.nz/things/branches/active_record_base_without_table 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 end 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: http://www.kangarooit.com/developer_blog/2007/02/email-form-validation-in-ruby-on-rails.php Any bugs, questions, comments please feel free to email me: jonathan.viney@gmail.com
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jcnetdev-active_record_without_table-1.0.20070427 | README |