README.md in jtable-rails-0.2.1 vs README.md in jtable-rails-0.2.2
- old
+ new
@@ -25,6 +25,17 @@
has_one :place
jtable :one_to_one, :first_name, :last_name, {:place => [:city, :state]}
end
-This creates a jTable called *one_to_one* with the *person* attributes *first_name* and *last_name*, and the *place_attributes* *city* and *state*
+This creates a jTable called *one_to_one* with the *person* attributes *first_name* and *last_name*, and the *place_attributes* *city* and *state*.
+
+Custom Attributes
+-----------------
+ class Person < ActiveRecord::Base
+ jtable :custom, :first_name, :last_name, :date_of_birth
+
+ def jtable_custom_attribute_date_of_birth
+ self.date_of_birth.strftime("%m/%d/%Y")
+ end
+ end
+This will make the *date_of_birth* field be displayed with the format *mm/dd/yyyy*.
\ No newline at end of file