Upload Product images with ActiveStorage - CreatorPlatform.xyz - Part 15

In this episode, we'll install and set up ActiveStorage to upload files. I encounter a confusing bug related to how active storage was installed client side, and I go through my debugging steps, hopefully, those are helpful! We'll also talk about how to add variants to images.

00:00 Introduction
00:27 Install Active Storage and image_processing gem
01:39 Add reference to the attachment to the Product model
02:56 Add file upload input to product form
04:12 Incorrectly add active storage client side
05:24 Encounter ActiveSupport::MessageVerifier::InvalidSignature bug
06:43 Fix bug
07:16 Add image_tag to display the uploaded image
07:58 Add variants to photo
09:15 Conclusion

Playlist: https://www.youtube.com/playlist?list=PLS6F722u-R6IJfBrIRx3a2SBkAL4vUp2p
Code: https://github.com/cjavdev/creators.dev/
Follow me on Twitter: http://twitter.com/cjav_dev

#rubyonrails #ruby #rails