Rails is a robust, flexible, and beginner-friendly framework for creating web applications. It follows the MVC (Model-View-Controller) design pattern, which helps keep the application organized, modular, and maintainable. Let’s delve into the intricacies of the Rails directory structure, explaining the purpose of each folder and file. Ruby on Rails: File and Directory Structure at a…
Continue ReadingTag: config
Active storage deletes previously uploaded attachments ? how to fix
The Issue So here’s the problem that i faced whenever i uploaded mutliple attachments with active record. This only happens with mutliple uploads. So i have a model called ‘albums’, and albums have ‘has_many_attached’ photos’ attachment. So that i can upload multiple photos in a single album. When creating a new album record, i didn’t…
Continue Reading