We used to have to use gems like Carrierwave & Paperclip to upload files & manipulate images in Ruby on Rails. However we now have a fantastic library built into Rails called Active Storage which handles that for us.
The first thing you need to do is run the install script, which will create a migration to add the Active Storage tables to your database.
.