Browse files

Readme update

  • Loading branch information...
1 parent 40075f9 commit ef8f80e80ab29b2b34c97be12625262c2b376c8a @mattfordham committed Jun 5, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0
@@ -15,11 +15,15 @@ bundle install
Then add the following to your model:
+attr_accessor :my_csv_file
validates :my_csv_file, :csv => true
This will check to see if it is a properly formed CSV file.
+In this case, csv_validator expects :my_csv_file to be an instance of ActionDispatch::Http::UploadedFile, which is created by default for Rails uploads.
## Other validation options
There are a handful of other options for more specific validation too. A complete list is below... note that you wouldn't use all simultaneously.

0 comments on commit ef8f80e

Please sign in to comment.