© 2023 Hashnode
#rails
Introduction: Devise is a popular and flexible authentication gem for Ruby on Rails applications. It provides a full suite of authentication features, including user registration, password recovery, and sign-in/sign-out functionality. In th…
Delegation is one of those design patterns that are implemented in the Ruby standard library, as external ruby gems and separate implementation in the Ruby on Rails framework. It’s simple yet powerful…
I've been intrigued by Ben Johnson's Litestream and Litefs projects, which aim to make this a reality for a web app capable of handling millions of requests using just a single VPS. I've been building…
Caching is an essential technique used by web applications to improve their performance. Rails, being a popular web framework, has an in-built caching system that allows developers to store the result…
Rails 7 with Hotwire and Turbo is a powerful web development framework that provides developers with an extensive range of features, tools, and libraries. It’s designed to make it easier for developers to create high-performance application…
Introduction Ruby on Rails and React are two powerful tools that can be used to build a modern web application. Ruby on Rails is a web application framework written in the Ruby programming language, w…
You might use binding.pry in your code but docker ignores the break-point. It won't allow interactivity and terminal to apps running in containers. The problem is that Docker just kind of ignores it…
This article was written with the help of AI. If you're a Rails developer, you're probably familiar with the Rails console, which allows you to interact with your Rails application in a command-line i…
This article was written with the help of AI. When working with Rails, you've likely encountered the N+1 query problem. This occurs when you have a database query that returns N records, and then you …
This article was written with the help of AI. Have you ever found yourself in a situation where you needed to create multiple records at once in Rails? Maybe you have a form that allows a user to crea…