Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

This branch is 1 commit ahead of robinsp:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README
Rakefile
init.rb

README

ActiveRecordTableless
=====================

Rails plugin allowing ActiveRecord models to be used with validations but 
without being backed by a database table.


Install
=======

script/plugin install git://github.com/robinsp/active_record_tableless.git


Example
=======

class TablelessModel < ActiveRecord::Base
  tableless :columns => [
                [:email, :string],
                [:password, :string],
                [:password_confirmation] 
            ]
  
  validates_presence_of     :email, :password, :password_confirmation
  validates_confirmation_of :password
  
end


Copyright (c) 2008 [name of plugin creator], released under the MIT license
Something went wrong with that request. Please try again.