December 2023
Intermediate to advanced
237 pages
7h 50m
English
In this chapter, we will add the ability to store image files for display in our blog posts. We will leverage the Active Storage gem to provide much of the functionality while working within our own image controller to serve up the image data and to handle missing images.
Rails version 5.2 introduced a new feature called Active Storage that provides file storage functionality. Active Storage allows us to upload files to our Rails application, storing the file binary data as well as metadata, making it the current best way to add images to our blog. I say “current best ...
Read now
Unlock full access