Let’s talk about Rails templating engines. No, wait. Don’t groan. They’re actually quite fascinating, and as a Rails developer, they can be your secret weapon. They’re that vital piece of the jigsaw puzzle that sits at the intersection of the model and the controller in our beloved MVC (Model-View-Controller) framework, deciding how the data model…
Continue ReadingTag: views
Devise tutorial: adding avatars with active storage
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 ReadingAdding Pagination With Kaminari
Why Pagination ? As our list of record accumulates, we would not want to show the entire list of records in a single page, as this is impractical and will cause our rails app to get slower and slower and as well as degrade the performance of our database server. So, an easy way to…
Continue Reading