aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJanko Marohnić <janko.marohnic@gmail.com>2018-04-23 21:04:35 +0200
committerJanko Marohnić <janko.marohnic@gmail.com>2018-04-23 21:04:35 +0200
commiteef0bd0c0a4da52a111639cb9fb5823057cbdf27 (patch)
tree36d4daae99ba0264a4b5c805a3529d252a812a31 /guides
parentdc97f6c3fd2769ba29ea06a6015244be18a19893 (diff)
downloadrails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.tar.gz
rails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.tar.bz2
rails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.zip
Recommend using :resize_to_fit after all
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_storage_overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 3f55e82e24..8f723e1e9f 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -353,7 +353,7 @@ original blob into the format you specified and redirect to its new service
location.
```erb
-<%= image_tag user.avatar.variant(resize: "100x100") %>
+<%= image_tag user.avatar.variant(resize_to_fit: [100, 100]) %>
```
To switch to the Vips processor, you would add the following to
@@ -375,7 +375,7 @@ the box, Active Storage supports previewing videos and PDF documents.
<ul>
<% @message.files.each do |file| %>
<li>
- <%= image_tag file.preview(resize: "100x100>") %>
+ <%= image_tag file.preview(resize_to_limit: [100, 100]) %>
</li>
<% end %>
</ul>