Tutorials
Algorithms: Two Point Method with Ruby - DEV Community
The Two Point method is a commonly used approach for solving problems in computer science and algorithms. This method involves the use of two pointers, typically referred to as left and right pointers, which are initially positioned at opposite en...
From Theory to Practice: Using Active Storage for File Management in Rails - DEV Community
This is the part B of my Ultimate Guide to Active Storage in Rails series where I aim to teach you all that is required to know about Active Storage. In this part of the series, I aim to walk you through the technical setup of Active Storage and h...
Rails Self-Referential Relationships - DEV Community
In a self-referential relationship a class can interact with itself using a join table. While brainstorming some ideas for my new Rails project I found the topic of self-referential has_many, throughrelationships. After reading about it I decided ...
Sending Better Data With Rails Serializers - DEV Community
Using Ruby on Rails as an API is awesome because of its render :json method. The only problem is that many times the JSON data may contain many unnecessary things. We want more options to customize the data and we can do that using serializers. We...
How To Deploy Your Rails App to a DigitalOcean Droplet Using Dokku - DEV Community
For reference, you can deploy and run about three simple apps on one $6 droplet, but that's only about half the cost of hosting one app on Heroku with a database and caching. Moreover, unlike a Droplet, the Heroku server will sleep when it's not b...
Testing AJAX Controller Requests With Different Versions of Rails and RSpec
AJAX opens a new window (Asynchronous JavaScript and XML) is an approach that combines the use of many different technologies such as HTML or XHTML, CSS, JavaScript, DOM, XML, XSLT, and most importantly the XMLHttpRequest object to provide a bette...
ActionCable and React for Beginners - DEV Community
But sometimes, we want real-time interaction with others. For example, users on Discord or Slack don't manually refresh their applications to get new messages, they are simply received. To facilitate this need for real-time updates, we can use Web...
Ruby on Rails with React on Typescript using importmaps - DEV Community
With React and Rails, you can build a great application that has a fast, responsive, and dynamic user interface, as well as a robust and scalable back-end. Typescript adds strong typing, better tooling, and error checking to your code, making it m...
Rails Performance Gem | Ruby on Rails 7 Gem - YouTube
This Rails Performance Gem lets you very easily setup a quick performance monitoring dashboard for your Ruby on Rails 7 apps.Checkout my course(s) at: https://learn.deanin.comLinks:https://github.com/igorkasyanchuk/rai...https://www.patreon.com/ig...