Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the field to field validation

  • Loading branch information...
commit 7c59d773bc46fdf36e9667a25c0e3c71e5258012 1 parent 21f1ea9
Rafael Cardoso authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Readme.md
6 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.
Please sign in to comment.
Something went wrong with that request. Please try again.