Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Readme update

  • Loading branch information...
commit ef8f80e80ab29b2b34c97be12625262c2b376c8a 1 parent 40075f9
@mattfordham authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -15,11 +15,15 @@ bundle install
Then add the following to your model:
```ruby
+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.
Please sign in to comment.
Something went wrong with that request. Please try again.