The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
🚀 Exciting News! The Ruby Warsaw Community Conference is just one month away, on Jul
đź“Ť Location: Palace of Culture and Science, Warsaw, Poland - right in the heart of the city! [more inside]
Refactoring transaction blocks with the endless method
I pushed the limits of using the endless method by refactoring some AR transactions blocks into endless methods. I also discuss there the pros and cons and how the community sees this kind of code shape.
`true`, `false` and `nil` in Ruby 💎
You will learn how to easily optimise memory allocation making better use of these 3 objects and why they work this way. https://mathieu-eustachy.com/articles/in-depth-ruby-memory-optimisation-true-false-and-nil
Measuring Ruby Garbage Collector
The Garbage Collector releases memory slots from unused objects. However, it interrupts the Ruby execution and might significantly increase requests’ response time. Would you like to know how the GC slows down your app? https://www.rorvswild.com/blog/2024/measuring-ruby-garbage-collector
v0.7.4 release of actual_db_schema
Exciting news! We’re rolling out a special release of actual_db_schema! Version 0.7.4 adds support for Rails 6.0 and the edge versions.
Creating a REST API with Ruby on Rails
Here I show my way of creating REST APIs with Ruby on Rails. This might seem simple for those who already know, but it could be of great help to someone who is just starting out: [more inside]
Todo MVC Ruby Edition is the one Todo MVC To Rule Them All!!!
Todo MVC is a popular sample that is built in all Web Frontend Frameworks to provide a comprehensive example covering all basic Frontend features. As such, it provides Software Engineers with a very good idea of how day-to-day Frontend Development would be with every Frontend Framework, whether in JavaScript, using React, Angular, Ember, or Vue, or in a Compile-to-JavaScript language, using something like Elm, GWT, or Scala.js. I am happy to announce that Todo MVC has just been built using Glimmer DSL for Web with 100% Frontend Ruby code. And, this version’s code is easily simpler, more minimalistic, more readable, and more maintainable than all 45+ versions on the Todo MVC website! I can confidently say it is the one Todo MVC to rule them all! Thanks to the awesomeness of Ruby in the Browser!!! https://andymaleh.blogspot.com/2024/06/todo-mvc-in-ruby-is-one-todo-mvc-to.html
Curated dashboards in Honeybadger
Here’s what we worked on during our last product cycle at Honeybadger: a curated Rails performance dashboard with automatic Ruby instrumentation! ✨
Creating indexes on big tables like a boss
Struggling with adding an index to a large table in your Rails app without clogging deployment pipeline? [more inside]
Synvert now supports the Prism parser
Synvert provides the ability to write code snippets that can automatically rewrite your source code. Here’s a post to demonstrate that synvert supports the prism parser now. https://synvert.substack.com/p/synvert-now-supports-the-prism-parser
Understanding Kamal healthchecks
Here’s a post on all the healthcheck settings you might want to understand in Kamal.
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2.
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2. [more inside]
Monitor the Performance of Your Ruby on Rails Application Using AppSignal
In the second part of this two-part series, we’ll use AppSignal to monitor the performance of our Ruby on Rails application: https://blog.appsignal.com/2024/06/12/monitor-the-performance-of-your-ruby-on-rails-application-using-appsignal.html
Memory management in Ruby 💎
Ruby, is hiding you the complexities of this task https://mathieu-eustachy.com/articles/memory-management-explained-in-ruby
ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2.
Rails 7.2 allows to add custom blob key in the ActiveStorage::Blob APIs [more inside]
Implementing dark mode with Stimulus
Here’s a simple dark mode with Tailwind and Stimulus.
Astronoby v0.5.0 released
With new features related to the Moon 🌙 Location in the sky, moonset and moonrise times, distance, phases, illuminates fraction, … https://github.com/rhannequin/astronoby/releases/tag/v0.5.0
How to refresh the full page when submitting a form inside a Turbo Frame?
I find it kind of strange that this doesn’t work out of the box, but there a few ways to do it, all not too complex: How to refresh the full page when submitting a form inside a Turbo Frame?
Ruby endless method - a quick intor
Continuing my series of writing about Ruby endless method in an article where I show some code samples of both one-liners and multi-line endless methods
How to Use Tailwind CSS for Your Ruby On Rails Project
Let’s see how we can use Tailwind CSS in a Rails application and explore its utility-first approach: https://blog.appsignal.com/2024/06/05/how-to-use-tailwind-css-for-your-ruby-on-rails-project.html