<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,3 +4,32 @@ ActiveRecord Tableless Models
 A single implementation of the ActiveRecord Tableless Model pattern for any
 Rails project or other Ruby project that uses ActiveRecord.
 
+Define a model like this:
+
+class ContactMessage &lt; ActiveRecord::Base
+  has_no_table
+  column :name, :string
+  column :email, :string
+  validates_presence_of :name, :email
+end
+
+You can now use the model in a view like this:
+
+&lt;%= form_for :message, @message do |f| %&gt;
+  Your name: &lt;%= f.text_field :name %&gt;
+  Your email: &lt;%= f.text_field :email %&gt;
+&lt;% end %&gt;
+
+And in the controller:
+
+def message
+  @message = ContactMessage.new
+  if request.post?
+    @message.attributes = params[:message]
+    if @message.valid?
+      # Process the message...
+    end
+  end
+end
+
+</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c4aa61ede7031350c5d473f0eec26be1abc96888</id>
    </parent>
  </parents>
  <author>
    <name>Stan</name>
    <email>skamithi@gmail.com</email>
  </author>
  <url>http://github.com/kennethkalmer/activerecord-tableless-models/commit/af6075d9f743e711effb704ae18ba264fec49e28</url>
  <id>af6075d9f743e711effb704ae18ba264fec49e28</id>
  <committed-date>2009-08-03T11:41:28-07:00</committed-date>
  <authored-date>2009-03-20T08:09:20-07:00</authored-date>
  <message>add some details to the README from the authors website

Signed-off-by: Kenneth Kalmer &lt;kenneth.kalmer@gmail.com&gt;</message>
  <tree>d53463430546e0741740ee55e006e1795ebc4010</tree>
  <committer>
    <name>Kenneth Kalmer</name>
    <email>kenneth.kalmer@gmail.com</email>
  </committer>
</commit>
