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.
[redis_queud_locks] version 1.5.0 released
The new version of RedisQueuedLocks (distributed redis locks with a queue capabilites in AdvisoryLock manner) released with a support for sampling logger: you can set the percent of RQL cases that should be logged. [more inside]
How to use custom gems without changing the Gemfile
A nice technique that lets you have your custom gems in any project without introducing any changes to the git repo: https://dev.to/povilasjurcys/how-to-use-custom-gems-without-changing-gemfile-4adi
People shouldn't ask if Rails is dead! They should ask how long Rails has been dead!
People shouldn’t ask if Rails is dead! They should ask how long Rails has been dead! https://andymaleh.blogspot.com/2024/05/people-shouldnt-ask-if-rails-is-dead.html
Strict Loading Using :n_plus_one_only Mode Does Not Eagerly Load Child Associations
Strict Loading Using :n_plus_one_only Mode Does Not Eagerly Load Child Associations In Rails 7.2. [more inside]
Ruby 3.4 Enable frozen_string_literal by default
Ruby 3.4 Enable frozen_string_literal by default [more inside]
Ruby Warsaw Community Conference - check what we have prepared this time!
I’m happy to announce (finally :D ) next edition of Ruby Warsaw Community Conference! [more inside]
Five Things to Avoid in Ruby
We’ll dive into five common Ruby mistakes and see how we can combat them: https://blog.appsignal.com/2024/05/22/five-things-to-avoid-in-ruby.html
Adding views to an API-only Rails app
What if you started with an API-only Rails app, but now you need front-end assets and views? Jeffery Morhous has you covered!
Untangle Your Sidekiq Queues
There are lots of ways to structure your job queues, and we’ve seen them all. This is our guide to planning your queues for simplicity, resilience, and scalability.
On Flaky Tests, Time Precision, and Order Dependence
A flaky test is one that fails unpredictably, without a corresponding change in the code under test. These often show up in CI runs where a test unrelated to any change made suddenly fails, and then mysteriously passes when re-run. There are many type and causes of “flakes”. Today I want to talk about flaky tests caused by time precision, and time-order dependence. [more inside]
Hanami's place in the world of Rails
https://2n.pl/blog/hanami-s-place-in-the-world-of-rails A longer article/essay about Hanami, how it fits into the world of Ruby (rails) and many other connected things along the way
Expressive Class Hierarchies through Dynamically-Instantiated Support Objects
Abstract classes don’t always stand alone, but spring to life as a part of an object cluster. Here’s how to ensure you’re always instantiating the right ones.
Glimmer DSL for CSS Media Queries + CSS To Glimmer Converter
Glimmer DSL for CSS 1.3.0 and 1.4.0 just shipped with support for CSS Media Queries and a CSS To Glimmer Converter!!! This gem is included in Glimmer DSL for Web to enable styling elements with CSS via a Ruby DSL. Glimmer is smart enough to have multi-DSL support, meaning it enables using a Ruby DSL for CSS and another Ruby DSL for HTML in the same file, and it’s all Ruby code in the end, so one language, but interpreted differently depending on the applicable domain to facilitate writing the simplest code possible for each domain. https://andymaleh.blogspot.com/2024/05/glimmer-dsl-for-css-media-queries-css.html
RVM 4 Windows
The first Release Candidate 0.9.9 of a new Ruby version manager for MS Windows has been released. It is called rvm-windows and is a clone of the popular rvm.io for the classic command line and power shell on windows. If you are get used to rvm.io on *nix systems and have to develop on Windows as well, you will love it! [more inside]
IRB Kit 0.0.0: A kit of IRB extensions
In case you’d like to enhance your IRB configuration with additional helpers (and even a dynamic prompt), you might want to check out the IRB Kit gem. This reduced a bunch of custom code in my irbrc
file so everything can be loaded from this gem now. This might be of benefit to you too. Enjoy!
Glimmer DSL for Web Ruby Integration with JavaScript Libraries
Glimmer DSL for Web is a Ruby-in-the-Browser Web Frontend Framework that enables Rubyists to finally have Ruby productivity and happiness in the Frontend via a simpler, more intuitive, more straightforward, and more productive library than all JavaScript libraries like React, Angular, Ember, Vue, Svelte, etc…. Glimmer DSL for Web’s Rails sample app “Sample Selector” has been upgraded with Code Syntax Highlighting by integrating with highlight.js. It demonstrates how to build Glimmer Web Components in the Frontend and how to make HTTP calls from a Ruby Frontend to a Ruby Backend in a Rails application, among other things. [more inside]
How to use ActionCable with async requests in a Ruby on Rails web app
The practical use of WebSockets in Ruby on Rails app for slow API requests https://medium.com/@zozulyak.nick/how-to-use-actioncable-with-async-requests-in-a-ruby-on-rails-web-app-a70820c1fabe
How to configure code snippets for binding.break in RubyMine and VSCode
I am using very often the binding.break from the debug gem and I wanted to configure code snippets in Ruby Mine and VCCode
Business Class 1.7 released 🚀
Business Class is a Ruby on Rails starter kit that continues to align itself with default Rails configuration. In this release it comes with Turbo 8, Solid Queue, Thruster, and more.
Mongoid 9.0 released
The first major update for MongoDB’s Ruby on Rails adapter in a couple years is finally out.
Creating Forms in Ruby on Rails with Simple Form
Simple Form helps you to build and manage forms in Rails. Let’s examine what Simple Form is, why we might need it, and some real use cases: https://blog.appsignal.com/2024/05/15/creating-forms-in-ruby-on-rails-with-simple-form.html