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.
Enum in Rails explained
https://longliveruby.com/articles/enum-in-rails-explained
The Making of Adam (24x24 Pixel Punk) from Zero Using Pixel Art Designs in ASCII Text
Hello, I’ve put together a new pixel art how-to (step-by-step guide) titled The Making of Adam (24x24 Pixel Punk) from Scratch / Zero Using Pixel Art Designs in the ASCII Text Format. Yes, in ruby. Now create (or design) your own free Adam (or Eve) pixel punks. Yes, you can.
The second oldest Rails podcast?
The Ruby on Rails podcast is the oldest one out there, from 2005 (to now!). But I think I found the second oldest one https://pastrubies.live/past_rubies/20
The redo Keyword in Ruby
In this post, we’re going to explore redo for loops, blocks & enumerations.. The redo keyword
A Compositional Approach to Optimizing the Performance of Ruby Apps
Ruby makes developers happy, but at times I wish it was faster. In a new article I explore a novel approach to improving the performance of Ruby apps.
Fun with Rails Enums and PORO
I really like enums. They can be really powerful if they are used wisely. Let’s see what we can do with them in a multilingual Rails app with a little help from PORO (Plain Old Ruby Object). https://petr.codes/blog/rails/fun-with-enums-and-poro/
Rubber Duck Dev Show Episode 14 | Background Job Processing
Hear two rubyists discuss how to handle background job processing: https://www.rubberduckdevshow.com/episodes/14-background-job-processing/
Migrating Selenium system tests to Cuprite
The Cuprite driver is a very nice replacement for Selenium in your system tests. It speeds up the suite considerably and its API is clean and versatile. The article shows some numbers and a few issues that we hit during the migration as well as their possible fixes. [more inside]
Extremely fast Javascript bundling in Rails with Esbuild
The new jsbundling-rails gem allows you to use esbuild, rollup, or other Javascript bundlers in Rails. With esbuild, we can build our Javascript extremely fast compared to webpacker. How to use esbuild with jsbundling in Rails
ActiveSupport's #descendants Method: A Deep Dive
The #descendants method is part of Rails. It returns all subclasses that inherit from a given class. In this article, Jonathan Miles shows us how to use this method and how it’s implemented. It’s a great lesson in the ins and outs of Ruby’s object model. https://www.honeybadger.io/blog/hidden-gems-activesupport-descendants/
Rails Wizards (w/ Hotwire) Series
A 9-part series exploring the multiple ways to do wizards / multi-step forms in Rails including Hotwire for an SPA-like workflow. https://jonsully.net/blog/rails-wizards-part-one/
Error Tracking from Scratch
In this episode, we look at creating a middleware to track errors to publish to another error “from scratch” error monitoring application. https://www.driftingruby.com/episodes/error-tracking-from-scratch
httpx 0.18.0 released - http client for ruby (concurrency, HTTP/2)
0.18.0 Features Response Cache [more inside]
CDNget 1.0.0 released -- download files from public CDN
CDNget is a small tool to download files from public CDN, such as CDNJS, jsDelivr, UNPKG, or Google. Release 1.0.0 improved download performance. See README for details. https://github.com/kwatch/cdnget/tree/ruby-release
Hanami 2.0 - Complete example of persistance with ROM
In this new Hanami Mastery Episode, I showcase the complete persistence layer of a Hanami 2.0 application. YT video guide included! [more inside]
Rubber Duck Dev Show Episode 13 | REST vs. GraphQL APIs
Hear two rubyists discuss the differences between REST and GraphQL APIs: https://www.rubberduckdevshow.com/episodes/13-rest-vs-graphql-apis/
New (Modern Dotty Spotty) Currency Art Programming How-Tos (with Ruby)
Hello, Inspired by Damien Hirst’s “The Currency” art (token) parody / 40+ million $$$ cash grab I have created an all new /currencyart-howto repo that collects getting started guides (and scripts) - yes, in ruby - for creating your own free (modern dotty spotty) currency art in retro pixel bitmap raster format or in hi-definition (hi-def) XXXL poster-size quality vector graphics format. Happy pixel pushing and art programming in ruby.
array_include_methods 1.4.0
array_include_methods 1.4.0 has been released (Array#include_all?, Array#include_any?, Array#include_array?, Array#array_index, Array#array_intersection_indexes, and Array#array_diff_indexes methods missing from basic Ruby Array API) [more inside]