© 2023 Hashnode
#ruby-on-rails
Problem How to use Atom feed format in your Rails application. Click here if you just want to check the theory part. Introduction In today's interconnected world, content distribution plays a vital r…
Inspired by this post from Ruby for all: https://twitter.com/rubyforall/status/1660641879170625536 Here is one possible way to stay up to date with the latest Ruby features or latest Rails or any other framework changes. Experiment with a…
In my previous article, we explored the purpose of service objects and their role in encapsulating external business logic, particularly when interacting with third-party APIs. However, in scenarios w…
As a software engineer, designing a mobile app with a proper backend requires careful planning and consideration. Here are the steps you can follow to approach the system design process: Define the R…
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…
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 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…
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…