Rails + Dragonfly gem: Saving image in a directory structure based on ActiveRecord object attributes
- by Allen Bargi
I'm using dragonfly gem to manage images and attachments in my rails app and I need to store images in a specific directory structure based on my
user model.
let' say I have user model which has a name and each user has many
albums, which have a name also, then I want the images to be stored
in …