A possible mistake in Rails Active Storage documentation
I was coding for a project where image needs to uploaded and resized. I used Rails 5.2 and hence active storage. I did refer its documentation and resized the image as stated in http://edgeguides.rubyonrails.org/active_storage_overview.html#transforming-images , and to my dismay I got this error message:
So reading the error I was able to figure out resize_to_fit was not the thing that must be used, so I checked on the internet and found that resize works, and one rather than giving:
can get away by modifying it as
Did any one of you face such an issue? Is there a mistake in Rails docs? I don’t know. But it definitely did not work for me.