© 2023 Hashnode
#ruby
Problem How to use Atom feed format in your Rails application. Click here if you just want to check the implementation part. Introduction In today's interconnected world, content distribution plays a…
Note: This article was originally published in April, 2020 Sidekiq + k8s Running Rails applications with Sidekiq in Kubernetes allows for the decoupling of background and web processes to take advanta…
TL; DR: Redirect to a javascript file in your controller and create a brilliant javascript code. Objective Learn how to handle Ajax requests in Ruby on Rails controllers and gain a solid understandi…
In the rapidly evolving digital landscape, programming has become one of the most sought-after skills one can possess. Programming languages serve as tools for creating computer programs and applicati…
Introduction Logstash and the ELK stack (Elasticsearch, Logstash, and Kibana) are powerful tools for log management and analysis. They provide a robust solution for collecting, processing and visualiz…
In this article, I will provide you with a thorough understanding of Rails Service Objects. Whether you're new to the concept and wondering, "What are service objects?" or looking for guidance on how …
Revisited on May 28th, 2023 TL; DR: Configure a CSS class and include it to apply the technique. Problem In an Ajax-based application, users may complain that they are unable to see real-time updat…
Introduction: DevOps engineers play a crucial role in modern software development, bridging the gap between development and operations. To excel in this field, a solid understanding of programming and…
TL; DR: Set the maxlength attribute to the desired number Problem How to limit the number of characters in a text field in Rails. Explanation The goal is to limit the number of characters a user can…
TL; DR: The best strategy is the one based on your needs. Problem The ActiveRecord::RecordInvalid error is an exception raised in Ruby on Rails when an ActiveRecord model fails to be saved to the da…