How to write Rails helpers - Best Practices

Think of helpers as a mechanism to write chunks of views that are present everywhere in your application. For example - to show user avatar icon that appears everywhere on your site or to show formatted time across your app. This ensures a consistent UI that goes with the spirit of your application.
Read More

Managing Multiple Databases in Rails 6 - Part I

Rails 6 provides native support for multiple databases. In this post we'll discuss about how to setup your Rails 6 app with multiple databases and how it works. This is part I of this series, we'll discuss more implementation details in next parts.
Read More

Secure Logging in Rails

Facebook is probing a series of security failures in which employees built applications that logged unencrypted password data for Facebook users and stored it in plain text on internal company servers. Very similar incidents have struck Twitter, Github and many others in the past.
Read More