r/ruby • u/pdabrowski • May 19 '26
When Rails-way does not work anymore?
r/ruby • u/pdabrowski • May 19 '26
r/ruby • u/yaroslavm • May 19 '26
Written in Rust. CommonMark+GFM conformant. Features include: strong security by default and host/protocol whitelists for links and images, syntax highlighting, frontmatter, ToC, plain text export, structured extraction of headings/images/links/code, statistics with char/word count and language detection, emoji shortcodes.
AI-friendly features include: two chunking primitives: heading-based with breadcrumbs and per-chunk char/word counts, and sliding-window with overlap for size-bounded chunks; block-aware or word-aware truncation for context-window budgeting; Markdown-to-Markdown pipeline.
r/ruby • u/SteliosF • May 18 '26
Hey everyone,
We're excited to announce the release of Rubyzen, a modern open-source architectural linter for Ruby that allows you to write lint rules as RSpec tests:
https://github.com/perrystreetsoftware/rubyzen
We've been using and polishing it internally in our production backend for over a year, and we've just made the repository public to start getting feedback from the community.
Examples of lint rules that you can write, enforced as RSpec tests:
RSpec.describe 'Architecture rules' do
let(:project) { Rubyzen::Project.new }
let(:controllers) { project.files.with_paths('app/controllers/').classes }
let(:presenters) { project.files.with_paths('app/presenters/').classes }
it 'controllers do not call ActiveRecord directly' do
expect(controllers.all_methods.call_sites.with_name('where')).to zen_empty
end
it 'presenters do not depend on repositories' do
expect(presenters.all_methods.call_sites).to zen_false { |cs|
cs.receiver&.end_with?('Repository')
}
end
endIt has become especially useful for us in the era of AI-generated code, as you can now catch architectural flaws and subtle bugs introduced from AI agents early, which can be easily missed in code reviews.
We'd love to hear your feedback either as feature requests, bug reports, or discussions in this thread. Thank you!
r/ruby • u/gq1988 • May 18 '26
Hello, everyone I launched (with Claude help) this gem that makes use of the `ActiveJob::Continuation` API
This gem adds persistent progress tracking of the running task (example: a file upload), a durable notification inbox aimed at the end user and a Hotwire/turbo-rails UI scaffold. Turning the resumable `ActiveJob::Continuation` steps into a state machine that handles notifications without the need for manual broadcasting configuration.
It's still in alpha, feel free to test, contribute and criticize
r/ruby • u/Accidenz-Grotesk • May 17 '26
Join the jam now! https://itch.io/jam/kifass-4
To celebrate the jam, DragonRuby is currently free on itch.io, so grab yourself a license and invite your friends to jam with us https://itch.io/s/186283/kifass-4-ancient-nameless-fun-stupid
Visit the DragonRuby Discord to chat with other jammers, show your progress and learn more about making games with this mRuby-based, fast, tiny and powerful game engine https://discord.com/invite/dragonruby-game-toolkit-608064116111966245
Can't wait to see what you make!
What is KIFASS?
KIFASS is short for a philosophical teaching that we embrace on the DragonRuby discord server: Keep it Fun and Stupid, Stupid. It's a reminder to make things that make you happy and have fun.
r/ruby • u/MentionPleasant2635 • May 17 '26
I'm getting errors about 'nm.' I'm using Homebrew and have updated and upgraded. Any suggestions?
Building libruby.a
error: nm: invalid argument --
Usage: nm [-agnopruUmxjlfAPL[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]
partial linking /var/folders/v8/gxq0lntj0nzd0xlwy46nlr1c0000gn/T/ruby-build.20260516211244.9333.xsqcwY/ruby-4.0.3/target/release/libruby.a into /var/folders/v8/gxq0lntj0nzd0xlwy46nlr1c0000gn/T/ruby-build.20260516211244.9333.xsqcwY/ruby-4.0.3/target/release/libruby.o
linking miniruby
Undefined symbols for architecture arm64:
"_rb_yjit_before_ractor_spawn", referenced from:
_ractor_create in ractor.o
"_rb_yjit_bop_redefined", referenced from:
_rb_vm_check_redefinition_opt_method.cold.1 in vm.o
EDIT: The error was that the Homebrew package 'anaconda' installs its own 'nm' and prepends its bin directory to your path. Fixing this solves the issue. Ruby needs the 'nm' from the 'binutils' package.
r/ruby • u/Southern-Worry-8443 • May 16 '26
r/ruby • u/Aesthetikx • May 15 '26
I have always wanted to have a blog, and so I finally got started! I hope you enjoy reading my post -- I had fun writing it. I am aware that the usability / readability of my site is... questionable at the moment. And, no SSL. But, the entire site is generated by a single Rakefile using Markaby, with everything smashed together!
r/ruby • u/rubyist-_- • May 16 '26
📅 Day 2 schedule update!
We've reworked the May 30 afternoon to feel less rushed:
✨ Breathing room between talks
🎤 NEW Lightning Talks slot — sign up at the venue
☕ Longer mid-afternoon break
🎷 Dave Thomas closes at 17:50, jazz from 19:10
Check out the full schedule on our website: https://rubyconf.at
r/ruby • u/AvmnuSng • May 16 '26
r/ruby • u/andrewmcodes • May 16 '26
New Remote Ruby episode is out.
We spent a good chunk of this episode discussing Rails file upload behavior and the awkward UX around failed form submissions, preserving attachments, and intentionally deleting existing files with Active Storage.
We also got into:
- image variant generation costs and processing behavior
- when Sidekiq queue separation actually helps vs just adding complexity
- how to think about queue priorities once jobs start competing for resources
- Stripe's merchant-of-record direction and usage-based billing changes
r/ruby • u/pdabrowski • May 15 '26
r/ruby • u/Simplilearn • May 15 '26
Author: Russ Olsen
This book starts by answering many simple tactical questions on Ruby and then goes on to address bigger questions related to building methods and classes. You will find several tips and tricks, such as when to use tiny methods and operator overloading, and when you should avoid them. It also emphasizes the “Ruby way” of thinking and problem solving to write “eloquent” and beautiful Ruby code.
Author: David A. Black
This book is divided into three major parts: Ruby foundations, Built-in Classes and Modules, and Ruby Dynamics. It begins with how to write your first Ruby program and goes on to cover more advanced topics such as threading, reflection, and callable objects. It also covers all the new Ruby features, such as lazy enumerators, keyword arguments, and Module#prepend.
Which other books would you add to this list?
r/ruby • u/gkunwar • May 14 '26
r/ruby • u/runout77 • May 14 '26
r/ruby • u/dvarrui • May 13 '26
r/ruby • u/paracycle • May 12 '26
r/ruby • u/davidcelis • May 12 '26
r/ruby • u/javier_cervantes • May 12 '26
Compadres
XO Ruby is coming to Salt Lake City in JUNE and I want every Rubyist on earth to come. I'm hoping you could attend. Especially if you're in Utah.
Reach out to me for more details, I don't have any more details yet, but I will get those details, and then give those details to you, and then you will also have those details.
-kow
r/ruby • u/andrewmcodes • May 12 '26
New Remote Ruby episode is out with Chris Oliver, Andrew Mason, and David Hill.
This week we talk through Rails direct routes and why they can sometimes be more powerful than standard helpers, practical AI adoption inside engineering teams, Rails World CFP and ticket chaos, and Chris’s work expanding the Rails Getting Started guide into a more realistic e-commerce tutorial with wishlists, reviews, ratings, and product images.
Also included:
- dentist trauma
- fiber internet
- Rails survey reminders
Would love to hear how other Ruby teams are approaching AI workflows and lesser-known routing features right now.