diff options
author | Janko Marohnić <janko.marohnic@gmail.com> | 2018-04-23 21:04:35 +0200 |
---|---|---|
committer | Janko Marohnić <janko.marohnic@gmail.com> | 2018-04-23 21:04:35 +0200 |
commit | eef0bd0c0a4da52a111639cb9fb5823057cbdf27 (patch) | |
tree | 36d4daae99ba0264a4b5c805a3529d252a812a31 /guides/source | |
parent | dc97f6c3fd2769ba29ea06a6015244be18a19893 (diff) | |
download | rails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.tar.gz rails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.tar.bz2 rails-eef0bd0c0a4da52a111639cb9fb5823057cbdf27.zip |
Recommend using :resize_to_fit after all
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_storage_overview.md | 4 |
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> |