diff --git a/README.md b/README.md index 697181d0b..4b7b491cd 100644 --- a/README.md +++ b/README.md @@ -430,7 +430,7 @@ If you're only interested in images, restrict your allowed content_types to image-y ones: ```ruby -validates_attachment :avatar, +validates_attachment_content_type :avatar, content_type: ["image/jpeg", "image/gif", "image/png"] ```