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 Step-By-Step Guide - Sub 1k - Inside The First Thousand Ordinal Inscriptions
is it ordinal summer? i’ve started on a free (online) programming ordinals (in ruby) step-by-step guide / booklet. the first chapter titled Sub 1k - Inside The First Thousand Ordinal Inscriptions shows you how to build a (local) sub1k sqlite database (from scratch / zero) - it’s about 40 MB - and than query for analytics / statistics via sql (using activerecord). happy programming (and data analytics) with ruby.
Rails' Sixth Sense: Unravelling the mystery of the autoloaders
A two-part series on how file autoloading works in Rails (including an explanation of what ‘zeitwerk’ really is) [more inside]
Passkey Authentication with Rodauth
Rodauth supports passkeys for multifactor authentication, or for passwordless login and registration – https://janko.io/passkey-authentication-with-rodauth/.
Simple guide to pessimistic locking in Rails
In the Rails world, optimistic locking is relatively well known, while its pessimistic alternative is often overlooked. In this blog post, I’m presenting how to effectively use pessimistic locking in Rails applications. https://www.visuality.pl/posts/a-simple-guide-to-pessimistic-locking-in-rails
Common Distance Metrics Implemented in Ruby
The fields of machine learning and artificial intelligence rely, fundamentally, upon the ability to measure the distance between two points. In this article we introduce some of the most common metrics used, discuss their interpretation and demonstrate how these can be implemented in ruby. Check it out here and let me know what you think.
MiniDefender Gem - Comprehensive Validation Gem for Rails
Mini Defender allows the developer to quickly and easily validate incoming requests data as the verify first step in the request, alongside this Mini Defender also provides the following benefits: [more inside]
"The Ruby on Rails Interview Bible 2023"
“The Ruby on Rails Interview Bible 2023” - A Comprehensive Guide with 500+ Essential Questions and Answers! #ruby #book #rails #interview #job #jobhelp #preparation #betterjob #itjobs #programmer #ebook #remotework #juniors #seniors https://nezirzahirovic.gumroad.com/l/bible
"🎓 Ready to master Ruby on Rails? Look no further! https://quiz.rubyonrails.ba
“🎓 Ready to master Ruby on Rails? Look no further! https://quiz.rubyonrails.ba offers 16 engaging games, 600 thought-provoking questions, and a vibrant community of 200 fellow learners. Join us today and unlock your Rails potential! 🚂💡 #WebDevelopment #RailsLearning #Ruby #Job”
Ruby's method-lookup path and Object Individuation
Objects seek their methods in both classes and superclasses, all the way up the inheritance tree; let’s see how this method-lookup process works when modules are also involved. [more inside]
Exploratory Guide on Active Model Dirty in Rails
Explore the Active Model Dirty API in Rails with this in-depth guide. Learn how to track changes to your model objects, handle validations, and persist changes to the database. [more inside]
ordinals gem - ordinal inscription api & recursive image helpers and more
is it ordinal summer? i’ve put together the ordinals gem - a light-weight (free, no api key required) ordinal api wrapper / client for inscriptions (letting you fetch metadata and content) and bonus the new version 1.1.0 now includes recursive image helpers (that let you generate .SVGs) … see diypunks.svg on the ordtest(net) with 9 recursions as an example.
Service Objects On Rails
Yes I know, another one of those ;) Bear with me, I believe we can add a bit to the debate and give some practical tips on why, and how, service Objects work for us. [more inside]
Creating Custom Rails Generators
After several failed attempts at creating custom Rails Generators over the years, I finally got around to really digging in and put together a medium-fidelity guide to understanding them and getting them working. https://garrettdimon.com/journal/posts/creating-custom-rails-generators
A list of places where to promote an article about Ruby
I tried to gather at https://allaboutcoding.ghinda.com/where-to-promote-an-article-about-ruby a list of places where you can promote an article about Ruby
New Truemail 3.0.9
In the latest truemail release has been fixed default email pattern follow to RFC 1035. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Seed your database with the Faker gem. Then seed 9.4x faster with upsert_all 🎭
Hey RubyFlow, I just published an article on seeding your database with the faker gem. [more inside]
Have rails flaky tests? fix now
With this simple method you can now fix the rails flaky tests in seconds. [more inside]
Don’t reinvent the wheel with Rails exception handling
With the built-in rescue_responses setting, you can map exceptions to error pages in a simple, declarative way. It automatically renders JSON, too! https://mattbrictson.com/blog/handling-rails-exceptions