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.
How to configure field extensions using keyword arguments in GraphQL Ruby
A short post on configuring extensions for graphql-ruby fields using kwargs
What’s Next for Bridgetown, Cherry Blossoms 2022 Edition
Now that we’ve had a bit of time to breathe and get fully settled into v1.0, there is a myriad of enhancements and fixes we’re looking to pull together for the next point release. Here’s a sneak peek.
dry-validation - The one gem to validate them all! | Hanami Mastery episode #20
Validating data input is an extremely important problem to tackle in all applications. In Ruby ecosystem there is no better tool for that than dry-validation. Here is why! [more inside]
Rubber Duck Dev Show Episode 39 | Where Should You Put Business Logic?
Hear two rubyists answer the question where should you put business logic in your application: https://www.rubberduckdevshow.com/episodes/39-where-should-you-put-business-logic/
A Complete Guide to Optimizing Slow Tests
We have released a new guide containing every piece of wisdom we could muster to help you write fast tests and keep them fast. https://semaphoreci.com/resources/complete-guide-to-optimizing-slow-tests?utm_medium=social&utm_source=smgroups&utm_campaign=guideoptimizingtests
RuboCop Turns 10
Today RuboCop celebrates its 10th anniversary! I wrote a short article dedicated to this festive occasion and I’ve cut a special anniversary release - RuboCop 1.28. Enjoy!
Glimmer DSL for SWT Video Tutorial 12 - Hello, Tree!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! Glimmer DSL for SWT Video Tutorial 12 is out! It walks software engineers through Hello, Tree! [more inside]
How to Add Filtering & Pagination to Your Data Tables With Hotwire
Having a way to filter records in a table was always clunky in Rails because you’d either have to write a lot of javascript and figure out how to make it work with pagination, or you’d not use Javascript at all and only do it server-side but that didn’t feel very responsive and modern. [more inside]
rodauth-oauth 0.9.0 released (Client Credentials Grant, Dynamic Client Registration)
rodauth-oauth is a rack-compatible toolkit for building OAuth 2.0 authorization servers, as well as OpenID Authentication Providers. [more inside]
The underrated power of dry-schema | Hanami Mastery Ep#19
Do you validate enough? In this episode I challenge you! Meet one of the most powerful DRY gems, dry-schema! [more inside]
Maryam Umar: How to Advance Your Career and Grow the Team in Test Automation
A great interview about careers in test automation and growing engineering teams. [more inside]
How to run a really long task from a Rails web request
A short post on forking a process from a Rails controller (and whether to actually do it or not). [more inside]
Build A SaaS App with Ruby on Rails 7 Presale is up
It’s that time of the Rails release cycle where I go through and rewrite the book to work with the latest and greatest from the Current Rails releases. [more inside]
A Look at Rails Hotwire: Turbo Drive
When the Turbolinks technology first came out in Rails 4, some people did not understand what it was really about. I happened to get it right away only because I personally implemented my own version of Turbo Drive for one of my client projects before Turbolinks was released (around 2011), so I really appreciated Turbolinks when it was released. With the latest updates in Rails 7, the Turbolinks technology has been renamed to Turbo Drive (now part of Hotwire) since it not only accelerates hyperlinks, but also form submissions too. [more inside]
Rubber Duck Dev Show Episode 38 | Small Projects
Hear two rubyists discuss different small projects they are working on: https://www.rubberduckdevshow.com/episodes/38-small-projects/
A GitHub Actions Rails CI Workflow in 5 lines
setup-rails is a re-usable GitHub Actions workflow for quickly and easily enabling CI for Rails apps. By creating a single 5-line configuration file in your repo, you can have a working CI workflow which configures the database and runs your app’s tests.
Glimmer DSL for SWT Video Tutorial 11 - Hello, Code Text!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! Glimmer DSL for SWT Video Tutorial 11 is out! It walks software engineers through Hello, Code Text! [more inside]
Ruby on Rails inline editing with Hotwire
In this video, we’re going to take a look at inline editing with Hotwire. https://youtu.be/hyV-J-sA1ng
A slice of life: table partitioning in PostgreSQL databases
In this overview of table partitioning in PostgreSQL databases, Ruby on Rails developers (and backend engineers in general) learn why and how to implement partitioning, then explore and solve common Rails problems and pitfalls. [more inside]
Fun with Hanami actions
Hanami actions are one of the richest building blocks in terms of available features and in this episode I want to go through them, showing how to validate params, handle errors and and use before or after hooks. [more inside]
Monocle: a bidirectional code generation library
I just published a bidirectional code generation library. Afaik it’s the first of its kind, and it opens up a lot of possibilities for cool new types of dev tools. https://blog.luitjes.it/posts/monocle-bidirectional-code-generation/