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.
Ruby Fusion - Initial Gathering
If you’d like to attend a gathering devoted to blending of Object Oriented with Functional programming in Ruby, check out Ruby Fusion on Thursday (2024-05-09) at 7pm MDT. This is our initial gathering of folks that are excited to be working, learning, and growing in this space. The gathering is virtual and free to attend but capacity is very limited at the moment so don’t hesitate if interested!
AnyCable for Ruby on Rails: How Does it Improve over Action Cable?
Let’s see what AnyCable brings to the table and how it outperforms Action Cable: https://blog.appsignal.com/2024/05/01/anycable-for-ruby-on-rails-how-does-it-improve-over-action-cable.html
astronoby v0.4.0 released
https://github.com/rhannequin/astronoby/releases/tag/v0.4.0 With accuracy and performance improvements, twilight times and new info about the Sun.
HiveGrid now supports Ruby 3.3.1
Check out HiveGrid. Goss also has been updated to version 0.4.6.
Rabarber v2: A Major Update for the Role-Based Authorization Gem
We’re excited to announce the release of version 2 of Rabarber, a role-based authorization gem for Ruby on Rails. This new version brings significant improvements, cleaner code, and a more refined user experience. [more inside]
ActiveRecord::Base#pluck adds support for hash values in Rails 7.2
ActiveRecord pluck and pick can accept hash values for specifying columns from Rails 7.2 https://blog.saeloun.com/2024/04/26/rails-7-2-activerecord-pluck-to-accept-hash-values/
Animate Filtering Data in HOTWire
We can progressively enhance the filtering search. We can dig deeper into Turbo events and get a very satisfying animation of Todos disappearing when they’re filtered out, and reappearing when they are back in the list. https://onrails.blog/2024/04/23/animate-filtering-data-in-hotwire/
Should You Use Ruby on Rails or Hanami?
Let’s explore the strengths and weaknesses of Rails and Hanami: https://blog.appsignal.com/2024/04/24/should-you-use-ruby-on-rails-or-hanami.html
Shipping Rails logs with Kamal and Vector
You’ve deployed your Rails app with Kamal, but now what? How do you know what’s happening under the hood? You can tail your logs on the server (otherwise known as hard mode), but there’s a better way: ship them off-site with Vector!
The dangers of single line regular expressions
Regular expressions in Ruby are multi-line by default and if you don’t know that, it might lead to unexpected behavior and security issues. In this article we go over a HackTheBox challenge to demonstrate how it could lead to a vulnerability. [more inside]
List all rake tasks (with and without description)
A short tip on how to list the rake tasks without description [more inside]
Open Source Project to Deploy Rails 7 Apps
Deploy Rails 7 app using Capistrano to EC2 instance. Checkout HiveGrid
Introducing Filterameter
This gem provides declarative filter parameters for Rails, enabling filters in query classes or controllers to increase readability and reduce boilerplate code. [more inside]
Ruby is Your Ally to Become a Rails Ninja!
Learning Ruby isn’t just recommended; it’s essential for mastering the full power of Rails: https://www.rubycademy.com/blog/learn-ruby
A Quick Guide to Ruby's Time and DateTime Classes
A Quick Guide to Ruby’s Time and DateTime Classes https://blog.saeloun.com/2024/04/19/a-quick-quide-to-ruby-time-and-datetime-classes.md/
RailsConf 2024 Countdown — Behind the Scenes with Kevin Murphy
📣 The latest Ruby for All episode is now available! [more inside]
New version of DnsMock has been released 🚀
Added ability to interact with DNS message question/answer context. Mimic any DNS records for your test environment and even more: https://github.com/mocktools/ruby-dns-mock
Delegated types in Rails: I tried them, and I'm not sure I really understood them.
Developers have been scratching their head trying to figure out delegated types for ages. Today, I want to share a real-world use case. I’ll walk you through my pre-existing domain architecture, my initial requirements, my mistakes, how I eventually used delegated types, what I learned and my open questions.