1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Replace :resize_to_fit with :resize in the guide

This commit is contained in:
Janko Marohnić 2018-04-23 12:35:43 +02:00
parent e40091648b
commit dc97f6c3fd
No known key found for this signature in database
GPG key ID: 84166B4FB1C84F3E

View file

@ -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_to_fit: [100, 100]) %>
<%= image_tag user.avatar.variant(resize: "100x100") %>
```
To switch to the Vips processor, you would add the following to