Skip to content
Browse files

git-svn-id: http://svn.viney.net.nz/things/rails/plugins/validates_da…

…te_time@369 20afb1e0-9c0e-0410-9884-91ed27886737
  • Loading branch information...
1 parent c85cd39 commit 05396fc114e649cd845f6ac34fa5b50409761c98 jonathan committed
Showing with 9 additions and 5 deletions.
  1. +8 −4 CHANGELOG
  2. +1 −1 README
View
12 CHANGELOG
@@ -1,7 +1,11 @@
-[11 February 2008]
-
-* Make :after add an error if the date is the same as the restriction.
-
+[19 March 2008]
+
+* Fix README typo.
+
+[11 February 2008]
+
+* Make :after add an error if the date is the same as the restriction.
+
[7 January 2008]
* Add support for ISO8601 formats.
View
2 README
@@ -99,7 +99,7 @@ and predefined values. You can pass as many value to :before or :after as you li
You can customise the error messages for dates or times that fall outside the required range. The boundary date will be substituted in for %s. Eg:
class Person
- validates_date :date_of_birth, :after => Date.new(1900, 1, 1), :before => Proc.new { 1.day.from_now.to_date }, :before_message => 'Ensure it is before %s', :after_message => 'Ensure it is before %s'
+ validates_date :date_of_birth, :after => Date.new(1900, 1, 1), :before => Proc.new { 1.day.from_now.to_date }, :before_message => 'Ensure it is before %s', :after_message => 'Ensure it is after %s'
end
Suggestions, comments, problems are all welcome. You'll find me at jonathan.viney@gmail.com

0 comments on commit 05396fc

Please sign in to comment.
Something went wrong with that request. Please try again.