Permalink
Browse files

added the field to field validation

  • Loading branch information...
1 parent 21f1ea9 commit 7c59d773bc46fdf36e9667a25c0e3c71e5258012 Rafael Cardoso committed Jul 28, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 Readme.md
View
@@ -39,6 +39,12 @@ validates :start_date,
Pretty much self-explanatory! :)
+If you want to make sure an attribute is before/after another attribute, use:
+
+```ruby
+validates :start_date, :date => {:before => :end_date }
+```
+
## Note on Patches/Pull Requests
* Fork the project.

0 comments on commit 7c59d77

Please sign in to comment.