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.
Bulding apps data-first with Sinatra
The Ruby ecosystem is rich with tools that make us developers more productive at what we do. Both Rails and Sinatra have been used to build web application proof-of-concepts and prototypes. But which one is better? [more inside]
Use Synvert to automatically use FactoryBot short syntax
Synvert provides the ability to write code snippets that can automatically rewrite your source code. This video demonstrates how to automatically use FactoryBot short syntax. https://synvert.substack.com/p/use-synvert-to-use-factorybot-short-syntax
How to create modals with form handling through a Turbo frame
Rendering async content in a modal has become really easy with the latest version of Turbo.js. There’s one trick that’s needed to ensure the validation errors stay displayed right in the modal. [more inside]
Unlocking the Power of Doge (Ordinal Inscriptions - SOON!) with Ruby
Hello, are (generative) pixel art inscriptions (or public blockchain “graffitis”) the new warhols or tulips in 2023? The bitcon ordinals started the new craze / mania with inscriptions earlier this month, litecoin followed with inscriptions this week and can Elon Musk’s Doge be left behind? Prepare yourself and write yourself into the history books of all time with uploading / inscribing the world’s first punk doge (pixel) art collection / ordinals to the doge blockchain (database). SOON! See the - yes, in ruby - do-it-yourself (d.i.y.) step-by-step getting started (programming) guide to generate your own doge (pixel) punks and much more at the Punk’s Not Dead - Pixel Art Collection Quick Starter page / repo. Happy pixel pushing with ruby. Cheers. PS: Need inspiration? Appropriate inscribed public “graffiti” (pixel) art - see the ordinals sandbox for samples (“right-clicked & saved” with the ordinals ruby gem / machinery).
Friendly.rb - a new Ruby Conference in Eastern Europe
I’m incredibly excited to announce Friendly.rb, a new Ruby conference. [more inside]
Ruby Conferences & Camps in 2023 - What’s Upcoming? (Yet) Another Update
Hello, I have added (yet) some more updates to the ruby conferences & camps in 2023 calendar page over at Planet Ruby (as a free public service). Yes, built in ruby via github pages (jekyll) and an open datafile (in yaml) - see conferences2023.yml . What’s Upcoming? Rails Girls Rotterdam (FREE!), Ruby Unconf Hamburg (€75 - Regular, €80 - Business), and more. PS:Did you know - the calendar web feed gets (automagically) syndicated on Rubyland News. Anything missing? Yes, you can. Add an upcoming ruby conference or camp. PS: If you happen to be around in Vienna, Austria in March join us for Ruby Burgers( & Red Belgian Kriek Beer) @ Vienna.rb.
Deploy Hanami Apps to Render! | Hanami Mastery #041
Render is one of the top replacements for hosting sandbox ruby apps for free. In this episode we guide you through the deployment process of your Hanami application, so you can have a complete, production-ready Hanami application on your own! [more inside]
Ruby Numbers and the Memory: how I got confused.
Here are little facts about Ruby memory that can help you get better results: https://evgeniydemin.medium.com/ruby-numbers-and-the-memory-how-i-got-confused-7f2fb53318be
How to install Ruby 2.6 on a Mac M1/M2 and Ventura without using Rosetta
I see a lot of people struggle to install Ruby 2.6.x on an Apple Silicon Mac, so I wrote a detailed guide that shows 3 ways to install Ruby 2.6 on Ventura, and explains why everything you’ve tried so far doesn’t work, and why you should consider updating your project to at least Ruby 2.7.7 instead.
artbase gem (& command-line tool) in Action - New Step-By-Step Guide (Anno 2023)
Hello, for the artbase gem (and “right-clicker” comand-line tool & machinery) I have written-up a new follow-along step-by-step guide (anno 2023) using the latest & greatest pixel art collection, that is, 1000 Un(official) Ordinal Punks in 24x24px. Happy pixel pushing with ruby. Cheers. Prost.
How to find a memory bloat in your Rails app before it happens
Memory bloat in Ruby happens when someone loads a lot of data to the memory. Ruby Virtual Machine does not return most of the allocated memory to the operating system even after data is collected as a garbage. It’s not a big deal for local development or console programs, but if you have a bloat in the big Rails app it might cost you a lot of money. [more inside]
Ruby2JS 5.1, esbuild, and a Peek at the Future
Ruby2JS 5.1 comes packed with several very welcome features, including a brand-new Ruby-based configuration DSL, a “preset” option for sane defaults along with magic comment support for sharing portable Ruby2JS code, and and esbuild plugin. Let’s dig in a bit on all these new features! Also an update on the status of Ruby2JS and its open source governance.
Getting Stuff Done With Drew Bragg | Rubber Duck Dev Show 74
In this episode, we discuss how to get stuff done with Drew Bragg: https://www.rubberduckdevshow.com/episodes/74-getting-stuff-done-with-drew-bragg/
Duped into modifying a frozen hash
Calling freeze on an object may not provide the immutability you expect. Here we dig into some of freeze’s nuances to explore a surprise of my own making I encountered working with ActiveSupport. https://kevinjmurphy.com/posts/modify-frozen-hash/
Protect your GraphQL data with resource_policy
How to integrate GraphQL with resource_policy gem to create fine-grained access control for your API. https://dev.to/povilasjurcys/protect-your-graphql-data-with-resourcepolicy-1pef
Rails Hotwire: mastering techniques for streamlining inline editing in your user inte
Recently, the inline editing capabilities demand has increased a lot. It allows users to edit certain fields in a form directly on the form page, without navigating to a separate edit page. No refresh nor reload page is needed. https://dev.to/ahmednadar/rails-hotwire-mastering-techniques-for-streamlining-inline-editing-in-your-user-interface-1h5m
gitti-backup & hubba gem In Action - Back-Up Your GitHub Repos Via git clone --mirror
Hello, what if your github repos are gone with a 24-hour (email) notice while you are offline? Prepare yourself and keep your own backups using the gitti-backup and hubba gems. See the How-To Back Up Your GitHub Repos - A Step-By-Step Guide for a write-up. Cheers. Prost. PS: What are your options? Do you use your own script(s) or other readymade tool(s) - please tell.
devise-otp 0.5.0 is out!
Since we got a brand new Devise release working with Turbo, I am also releasing devise-otp 0.5.0 so you can use the gems together inside your Hotwire app. If you want to skip building up all these 2FA flows, Business Class got updated with these latest Devise gems too!
High School - a Redis mutex in Ruby and Lua
Implements the locking strategy from Redis Labs’ book about… Redis :) https://census.dev/blog/high-school
Hix on Rails new release - free features, new builder, and more
Hix is a setup wizard for the project configuration flow. Select from setup options and enjoy a perfectly configured project. https://hix.dev/