User Avatars Everybody knows what user avatars are. But if you’ve been living under a rock; ‘user avatars’ or ‘Profile Pictures’ are graphical illustrations of a user’s persona or character; i.e they represent/describe the user’s personality or alter ego. The word ‘avatar’ comes from the sanskrit language meaning ‘a manifestation of a deity or released…
Continue ReadingTag: active storage
Display uploaded videos with VideoJS
What is VideoJS ? VideoJS is a client-side javascript library for displaying/showing/playing/embedding videos with a video player on the web browser, with controls such as volume controls, forward, skip, play, pause, etc. We can also display uploaded videos directly without even using this library as HTML5 already supports videos. But with videoJS we can have…
Continue ReadingCreating A Photo Album App With Rails
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 ReadingActive 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