aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/README.md')
-rw-r--r--activestorage/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/README.md b/activestorage/README.md
index 17d98978bb..f4aae4fc00 100644
--- a/activestorage/README.md
+++ b/activestorage/README.md
@@ -24,7 +24,7 @@ class User < ApplicationRecord
end
# Attach an avatar to the user.
-user.avatar.attach(io: File.open("~/face.jpg"), filename: "avatar.jpg", content_type: "image/jpg")
+user.avatar.attach(io: File.open("/path/to/face.jpg"), filename: "face.jpg", content_type: "image/jpg")
# Does the user have an avatar?
user.avatar.attached? # => true