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.
Announcing minitest-snapshots 1.0.0
The minitest-snapshots gem has reached 1.0.0! It’s a simple minitest plugin for implementing Jest-style snapshot testing, so that you don’t have to manually maintain file fixtures for machine-generated data. Think of it as VCR, but for any value. [more inside]
Network Programming Basics in Ruby
Let’s look at the basics of Network Programming and open a socket https://lucas.dohmen.io/posts/2023/06/04/network-programming-basics-in-ruby
Procfile.dev, bin/dev, and Rails 7 — how they work, and why (I think) they're great.
Hey RubyFlow — I recently published an article which dives into the bin/dev script and Procfile.dev in Rails 7 projects. Read more — https://railsnotes.xyz/blog/procfile-bin-dev-rails7
Broadcasting Progress from Background Jobs
In a previous episode, we had created a custom ActionCable channel to assist in broadcasting updates from a background job. With the introduction of Turbo, we can simplify this process as we look at a few different approaches in displaying a progress bar with real time updates from background jobs. https://www.driftingruby.com/episodes/broadcasting-progress-from-background-jobs
Dragon Ruby Panel / Party! | Rubber Duck Dev Show 91
In this episode, we close out Dragon Ruby month with a panel / party of guests! https://www.rubberduckdevshow.com/episodes/91-dragon-ruby-panel-party/
Rails upgrade led to Ruby bug
This is a short story about a Ruby bug for an uncommon feature. [more inside]
Deploying Ruby on Rails with Dokku
Hey, I’ve just finished writing a massive guide about deploying Rails with Dokku. Check it out here - https://railsnotes.xyz/blog/deploying-ruby-on-rails-with-dokku-redis-sidekiq-arm-docker-hetzner
JSON.parse to OpenStruct
Describes a neat trick I found to directly symbolize the keys of JSON.parse
and as a bonus, you could even tell it to return an OpenStruct
instead of a Hash
[more inside]
Solidus v4.1 is out!
We’re thrilled to announce the release of Solidus v4.1🚀 [more inside]
Hanami v2.1.0.beta1
Introducing hanami-view and sharing our plans for v2.1 https://hanamirb.org/blog/2023/06/29/hanami-210beta1/
A guide to setting up your next GitHub project
This is not Ruby-specific, but if you are creating a GitHub repo for your next Ruby project, you’ll want to review the following best practices: Improve your GitHub workflow with better repository defaults. Includes a quick introduction to some interesting low-level features of the gh
CLI.
Keep Your Ruby App Secure with Bundler
By the end of the post, you will understand how bundler audit
and bundler outdated
work. Both can help you monitor the security state of your project’s dependency tree. [more inside]
Using Rails.env.local? in Rails
Explore using Rails.env.local? which returns true if the environment is development or test. [more inside]
Easier nested layouts in Rails 7
I’ve been using a simple, 4-line helper method to implement nested layouts in Rails since I originally blogged about it in the Rails 4 days. The technique still works great after all these years! Today I updated my post for Rails 7. The code has now been tested from Rails 6.0 all the way to Rails edge. https://mattbrictson.com/blog/easier-nested-layouts-in-rails
Test-driven development in the age of artificial intelligence
Hi friends, I just added new content to Everyday Rails for the first time in nearly two years! Ruby is still my primary language, but sometimes I need to dip my toe into other languages and ecosystems. Here’s how ChatGPT, GitHub Copilot, and TDD made me a professional Go programmer in less than an hour. Kind of. Don’t worry, the post isn’t about Go, it’s about the process.
Ruby on Rails upgrade: "breaking changes" you might not expect
I’m working on a Rails upgrade for a giant monolith application. It’s been a while already, and while I’m encountering many issues trying to jump from 5.2+ right to 6.1, I want to share some of the stories. Link to post.
Your first Stimulus controller — learn Stimulus by building a Toggle
Hey RubyFlow! I’ve just published a beginner’s guide to learning Stimulus. We build a simple toggle controller, and I teach you some core concepts along the way. https://railsnotes.xyz/blog/your-first-stimulus-controller-learn-stimulus-ruby-on-rails-by-building-a-toggle-beginners-guide
3D & Robotics in Dragon Ruby with Kota Weaver | Rubber Duck Dev Show 90
In this episode, we discuss working with 3D and robotics in Dragon Ruby with Kota Weaver: https://www.rubberduckdevshow.com/episodes/90-3d-robotics-in-dragon-ruby-with-kota-weaver/
Glimmer DSL for WX (wxWidgets GUI Toolkit) Using wxruby3
Glimmer gets a new GUI DSL in 2023 called Glimmer DSL for WX (Early Alpha 0.0.5 was built in 1 day) to support the very mature wxWidgets GUI toolkit that renders cross-platform native GUI controls (using a brand new wxruby3 binding)! [more inside]
Using Rails Credentials in your Rails App
Did you know that Rails comes with a built-in credentials manager to replace .env variables? Heres how you can start using it — https://railsnotes.xyz/blog/custom-credentials-in-your-rails-app
If You Liked Shoes, You'll Love Glimmer!
A new Glimmer FAQ (Frequently Asked Questions) section has been added to the Glimmer project README on GitHub in order to answer questions like “How do Glimmer GUI DSLs compare to Shoes?” and “What is the difference between Glimmer and Glimmer DSL for SWT?”, among others. [more inside]
Rails design patterns - the big picture
https://rubyhero.dev/rails-design-patterns-the-big-picture