In order to create an alias for a method we can use alias_method which is provided by Ruby. Basically, we create an alias in order to override the name without...
Introduction: Ruby Gems are packages or libraries that extend the functionality of Ruby and Ruby on Rails applications. They provide ready-made solutions for common tasks, making development faster and more...
Introduction: When building Rails applications, it’s essential to test the responses of our controllers, especially when generating JSON output using Jbuilder templates. In this article, we’ll explore how to effectively...
Introduction: When creating a large number of records in Rails using ActiveRecord’s create! method, calling a database query for each record can be inefficient. However, there are alternative approaches that...
Rails 7 introduced a new method excluding for ActiveRecord::Relation, offering a convenient way to exclude specific records from a collection. This addition provides developers with a cleaner and more expressive...
Working with multiple GitHub profiles and switching them continuously is a tedious task. Switching between multiple GitHub profiles requires the following steps:
Efficient database query optimization plays a vital role in the performance and scalability of Rails applications. By minimizing query times and reducing unnecessary database hits, you can significantly enhance the...
As a Ruby on Rails developer, unique identifiers are an essential part of many applications. One unique identifier you should consider using is the Universally Unique Lexicographically Sortable Identifier (ULID)....
Test coverage is an essential aspect of any software development project. It helps ensure that your codebase is thoroughly tested, minimizing the risk of bugs and improving the overall quality...
If you are developing web applications in Ruby on Rails, then you are probably already familiar with the concept of scheduling jobs to run at specific intervals. One popular tool...
CSV (Comma Separated Values) is a widely used file format to exchange data between different systems. In this blog post, we will learn how to generate CSV files in Rails....
When working with Rails ORM, I encountered a challenge where I needed to search for students based on their name, email, or mobile number using a single search field. The...
AWS Secret Manager is a service offered by Amazon Web Services (AWS) that enables you to manage secrets such as database passwords, API keys, and other sensitive data. This blog...
As with any web application, security is a critical concern when developing Ruby on Rails applications. While Rails provides some built-in security features, such as protection from CSRF and SQL...
As web developers, we are constantly building APIs that are fast, reliable, and easy to consume. In the Ruby on Rails ecosystem, Jbuilder is a powerful tool that can help...
The Annotate gem is a powerful tool for Ruby on Rails developers that can help them automatically add schema information to their model files. It is a simple yet powerful...
If we have hundreds of thousands of records in our model, then sending or showing them all at once increases the latency of our application. In this case, we need...
If you want your database to be automatically backed up twice or thrice a day, you don’t actually need to perform multiple backups. AWS RDS provides a feature called “point-in-time...
As your application grows in size, migrating to a different database can be a daunting task. In this blog, we’ll explore a step-by-step guide on how to effortlessly switch your...
Processing millions and thousands of records is a time-consuming task that cannot be completed quickly. The user must wait for the process to complete, which can be a lengthy and...
As the size of the application increases, there may be latency from the backend. One possibility is that we are experiencing the N+1 query problem in our backend queries. In...
By default, Amazon RDS creates and saves automated backups of your DB instance securely in Amazon S3 for a particular retention period, we can change the period or we can...
Oftentimes, we need to use instance variables outside of the class in ruby code. We know that instance variables can be accessed by methods. And to access these methods, we...
To understand the difference between collection and member routes, first let’s take an example. Suppose we are having 3 models called User, Post, and Comment.
In order to create an alias for a method we can use alias_method which is provided by Ruby. Basically, we create an alias in order to override the name without...
Introduction: Ruby Gems are packages or libraries that extend the functionality of Ruby and Ruby on Rails applications. They provide ready-made solutions for common tasks, making development faster and more...
Introduction: When building Rails applications, it’s essential to test the responses of our controllers, especially when generating JSON output using Jbuilder templates. In this article, we’ll explore how to effectively...
Introduction: When creating a large number of records in Rails using ActiveRecord’s create! method, calling a database query for each record can be inefficient. However, there are alternative approaches that...
Rails 7 introduced a new method excluding for ActiveRecord::Relation, offering a convenient way to exclude specific records from a collection. This addition provides developers with a cleaner and more expressive...
Working with multiple GitHub profiles and switching them continuously is a tedious task. Switching between multiple GitHub profiles requires the following steps:
Efficient database query optimization plays a vital role in the performance and scalability of Rails applications. By minimizing query times and reducing unnecessary database hits, you can significantly enhance the...
As a Ruby on Rails developer, unique identifiers are an essential part of many applications. One unique identifier you should consider using is the Universally Unique Lexicographically Sortable Identifier (ULID)....
Test coverage is an essential aspect of any software development project. It helps ensure that your codebase is thoroughly tested, minimizing the risk of bugs and improving the overall quality...
If you are developing web applications in Ruby on Rails, then you are probably already familiar with the concept of scheduling jobs to run at specific intervals. One popular tool...
CSV (Comma Separated Values) is a widely used file format to exchange data between different systems. In this blog post, we will learn how to generate CSV files in Rails....
When working with Rails ORM, I encountered a challenge where I needed to search for students based on their name, email, or mobile number using a single search field. The...
AWS Secret Manager is a service offered by Amazon Web Services (AWS) that enables you to manage secrets such as database passwords, API keys, and other sensitive data. This blog...
As with any web application, security is a critical concern when developing Ruby on Rails applications. While Rails provides some built-in security features, such as protection from CSRF and SQL...
As web developers, we are constantly building APIs that are fast, reliable, and easy to consume. In the Ruby on Rails ecosystem, Jbuilder is a powerful tool that can help...
The Annotate gem is a powerful tool for Ruby on Rails developers that can help them automatically add schema information to their model files. It is a simple yet powerful...
If we have hundreds of thousands of records in our model, then sending or showing them all at once increases the latency of our application. In this case, we need...
As your application grows in size, migrating to a different database can be a daunting task. In this blog, we’ll explore a step-by-step guide on how to effortlessly switch your...
Processing millions and thousands of records is a time-consuming task that cannot be completed quickly. The user must wait for the process to complete, which can be a lengthy and...
Oftentimes, we need to use instance variables outside of the class in ruby code. We know that instance variables can be accessed by methods. And to access these methods, we...
In this blog, we will walk you through the process of accessing objects from a private S3 bucket through CloudFront. This will enable you to securely and efficiently deliver content...
In Ruby on Rails, delegates provide a way to delegate certain methods to an associated object. This is useful when you have a model with an association and want to...
Introduction Amazon CloudWatch, a monitoring and observability service offered by Amazon Web Services (AWS), provides a comprehensive solution for monitoring various AWS resources and applications. In this blog, we will...
AWS Secret Manager is a service offered by Amazon Web Services (AWS) that enables you to manage secrets such as database passwords, API keys, and other sensitive data. This blog...
If you want your database to be automatically backed up twice or thrice a day, you don’t actually need to perform multiple backups. AWS RDS provides a feature called “point-in-time...
By default, Amazon RDS creates and saves automated backups of your DB instance securely in Amazon S3 for a particular retention period, we can change the period or we can...
React hooks have become an essential part of building modern React applications. They provide a simple and elegant way to manage state and lifecycle events within functional components.
React hooks have become an essential part of building modern React applications. They provide a simple and elegant way to manage state and lifecycle events within functional components.
Introduction: Spotify is a popular music streaming platform that offers a wide range of features for its users. One interesting aspect is the ability to retrieve information about the currently...
Introduction: Spotify is a popular music streaming platform that offers a wide range of features for its users. One interesting aspect is the ability to retrieve information about the currently...
Introduction In Ruby on Rails, associations allow us to establish relationships between models. One such association is polymorphic association, which provides a flexible way to connect multiple models to a...
AWS provides two types of encryption for Redis clusters: at-rest encryption and in-transit encryption. Let’s explore what each of these means and how to migrate your Redis cluster to enable...
If you’re looking to enhance your Next.js project with beautiful charts and design, the Chart.js library is a great choice. In this blog, we will explore how to integrate Chart.js...
If you’re looking to enhance your Next.js project with beautiful charts and design, the Chart.js library is a great choice. In this blog, we will explore how to integrate Chart.js...
In this blog, we will walk you through the process of accessing objects from a private S3 bucket through CloudFront. This will enable you to securely and efficiently deliver content...
Never miss a story from us, subscribe to our newsletter