Tutorials
DB max connection limits for Rails app and Postgres, Redis, Puma settings
Configuring the database connections pool for the Rails app might not be a straightforward task for many programmers. There is a constraint of max opened connections on a database level. Your server environment configuration can change in time and...
Rails 7 transforms a Ruby hash into HTML attributes for ERB interpolation | Saeloun Blog
One of the basic things we learn as a Rails developer is how to interpolate bits and pieces of Ruby code into our template file, which is ERB. There are many other template engines apart from ERB, such as HAML and Slim, but since ERB is the defaul...
Animated graphics with Ruby and Voronoi partitions
I’ve been writing a lot of code for my next video in Code, Sound & Surround. One small part of that has turned out to be interesting enough to show off on its own. I built some tools for plotting and animating Voronoi diagrams in Ruby, and now I’v...
Using Docker for Rails in a Production Environment
Running a Rails application in production requires installing Ruby and other packages. It's not difficult and configuration management system like Chef or Ansible makes it even easier. Here we're going to look at a different approach. By using Doc...