public
Description: ActiveRecord::Base Without Table extension made compatible with rails 2.x
Homepage: http://agilewebdevelopment.com/plugins/activerecord_base_without_table
Clone URL: git://github.com/sofadesign/active_record_base_without_table.git
ratnikov (author)
Wed Mar 18 12:48:22 -0700 2009
sofadesign (committer)
Thu Mar 19 00:30:34 -0700 2009
name age message
file CHANGELOG Fri Apr 27 00:28:08 -0700 2007 Correctly cache class instance variables contai... [jonathan]
file MIT-LICENSE Tue Oct 31 23:09:00 -0800 2006 [jonathan]
file README Thu Feb 12 06:58:38 -0800 2009 Fixed README [sofadesign]
file Rakefile Tue Oct 31 23:09:00 -0800 2006 [jonathan]
file active_record_base_without_table.gemspec Thu Mar 19 00:30:34 -0700 2009 Bumped version Signed-off-by: Sofa Design <fab... [ratnikov]
directory lib/ Thu Mar 19 00:29:57 -0700 2009 Fixed the tests to work. Fixed the tests by re... [ratnikov]
directory test/ Thu Mar 19 00:29:57 -0700 2009 Fixed the tests to work. Fixed the tests by re... [ratnikov]
README
= 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

== Requirements

This extension is for Rails 2.x

For rails 1, please see the original extension: 
http://svn.viney.net.nz/things/rails/plugins/active_record_base_without_table/

    
  
== Instructions

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, :message
  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 are good blog posts 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