Creating a bare bone photo album app Today, i’ll show you how to create a basic photo album app with rails6, i’ll be using active_storage to manage uploads/attachments of our photo album. This app will be a very basic photo gallery/ablum app with just the bare bones, so no special styles, no file validations, authentication,…
Continue ReadingTag: assign to many
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