Embarking on a journey through the world of Ruby on Rails (Rails), aspiring software developers inevitably stumble upon a multitude of programming conventions and methodologies. The DRY principle, an acronym for “Don’t Repeat Yourself,” is a fundamental precept echoing loudly throughout Rails terrain. While Rails isn’t the sole benefactor of this rule, the DRY philosophy…
Continue ReadingCategory: General
General Category
Building Multi-tenant Applications with Rails
Let’s embark on a stimulating journey into the multifaceted realm of multi-tenancy software design, and witness the powerful capabilities of the Ruby on Rails toolkit in facilitating this approach. We’ll unfold the abstract concept of multi-tenancy, its potential advantages, and a blueprint on how you can integrate it into your Rails application. What is Multi-tenancy?…
Continue ReadingInternationalization in Rails
As the digital world entwines itself around us, the need to communicate efficiently across borders has become paramount. Software developers now, more than ever, find themselves needing to transcend language and cultural barriers. The concept of internationalization (often abbreviated as i18n) becomes crucial at this juncture. For those working with Rails, you’re in a sweet…
Continue ReadingDevise 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 ReadingEnabling Gzip Compression in your rails apps
What is Gzip Compression? Gzip compression is a quick and easy way to speed up the loading times of your web application. This can be done by compressing the static assets like stylesheets, javascripts, etc before serving them to the web browser. This can save a lot of bandwidth and as well as make your…
Continue ReadingAdding custom error pages to our rails app
Default Error Pages Rails already comes with its own error pages which is okay but too simple, but we can add our own custom error pages, just to make it look a lot nicer, here’s a quick and easy way on how you can do that. Popular Examples The default error pages that comes with…
Continue Reading