Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
How to write a module to extend class and instance methods of a given class or module
tree: 16fb8c22e7
Failed to load latest commit information.
README.textile Fixing a typo
tableless.rb First version of a quick Tableless mixin



Tableless is a simple, almost trivial mixin, that will let you use ActiveRecord models without a corresponding database table

This will be useful for those of us who are not using Rails 3, but need the ActiveRecord validation functionality, or would like to transparently use cool things like Formtastic.

Usage is simple. Firstly place tableless.rb in APP_DIR/lib, then:

class MyModel < ActiveRecord::Base
	include Tableless

	column :field_one, :string
	column :field_two, :text
	column :field_three, :boolean
Something went wrong with that request. Please try again.