Please sign in to comment.
- Loading branch information...
|@@ -15,11 +15,15 @@ bundle install|
|Then add the following to your model:|
|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.|