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.
GitHub Issue-style File Uploader Using Stimulus and Active Storage
I recently built a drag-and-drop and copy-and-paste file uploader for Markdown (like GitHub’s editor) using Stimulus and Active Storage. Just published the code and my write up on it: https://hybrd.co/posts/github-issue-style-file-uploader-using-stimulus-and-active-storage
International Pricing for Ruby and Rails Books and Courses
If you live in a country that has an undervalued currency compared to the dollar, it makes it difficult to invest in your education. [more inside]
Rubber Duck Dev Show Episode 18 | How Many 3rd Party Libraries Should You Use
Hear two rubyists discuss discuss how many 3rd party libraries you should use in your projects: https://www.rubberduckdevshow.com/episodes/18-how-many-3rd-party-libraries-should-you-use/
Rails Code Review with Kasper from Rails core
Kasper and I sat down to code review a pull request for the Unsafe URL protection in Rails 7. We talked about naming, shaping the code, and how to design code to better show its intentions. Watch the Rails PR Code Review with Kasper Timm Hansen screencast
New "Upsized" Female Pixel Punk Archetype (Incl Zombie/Ape/Alien) Experiment / Series
Hello, in the ongoing pixel art / punk programming - yes, in ruby - series I put together all new “upsized” unisize female pixel punk archetypes incl. zombie, ape, and alien that sport the same size / dimensions and eye/nose/mouth positions as the male archetypes. Pixel size (gender) equality at last! As a case study I converted the five top selling million $$$ punks to punkettes using the new unisize female archetypes that let you (re)use almost all “male” attributes such as Cap Forward, Knitted Cap, Headband, Small Shades, and so on. If the attributes differ for male / female such as wild hair or crazy hair - the female attribute version needs to get “stretched” by 2px on the left and top. And the neckwear such as the gold chain can (re)use the “female” version as-is. See the (Female) Pixel Punk Unisize Archetypes experiment page for more including the script - yes, in ruby - to (re)generate the top selling pixel punks from scratch / zero. Questions and comments welcome. Join us in the r/CryptoPunksDev channel / forum.
wordlist-1.0.0 released!
Wordlist is a Ruby library for reading, combining, manipulating, and building wordlists, efficiently.
Glimmer DSL for SWT Supports Linux DEB/RPM Packaging
Glimmer DSL for SWT v4.21.2.0 just added support for Linux DEB/RPM native executable packaging (while still supporting the older GEM packaging alternative), rendering Linux a 1st class packaging citizen in Glimmer DSL for SWT just like Mac, which has support for APP/DMG/PKG native executables/installers, and Windows, which has support for MSI/EXE native executables/installers. [more inside]
The Joy of Structs
I wrote a comprehensive guide to Ruby Structs which is meant to shed more light on this underutilized but powerful primitive. Enjoy!
Async Ruby
Ruby has an Async implementation! It’s available today, it’s production-ready, and it’s probably the most awesome thing that’s happened to Ruby in the last decade, if not longer. [more inside]
Evolution of Encrypted Credentials in Rails 6.2
With each update, the credentials feature acquired better shape. This post will offer a peek into the evolution of encrypted credentials since its inception in Rails 5.1 [more inside]
Enumerations system for Ruby with awesome features
Today I published my gem for building enumerations in classes. [more inside]
Rails API Building: The Resourceful Way
A unique, but thoughtful approach to building Rails REST APIs by using POROs to build endpoint resources. This article also briefly touches on how to use links on both the server and client to dictate application behavior. [more inside]
Building, Testing, and Deploying Google Cloud Functions With Ruby
Google’s Cloud Functions let developers run their code in production in a scalable way without worrying about the minutiae of server administration. In this article, Subomi shows walks us through building a real-world service using GCF. https://www.honeybadger.io/blog/building-testing-and-deploying-google-cloud-functions-with-ruby/
What is request queue time?
Request queue time is a key metric for understanding web app performance and scaling. This post explains what it is, how it’s calculated, and how you can use it to effectively optimize your app.
Rubber Duck Dev Show Episode 17 | Practicing Continuous Integration & Deployment
Hear two rubyists discuss how to practice continuous integration (CI) and continuous deployment (CD): https://www.rubberduckdevshow.com/episodes/17-practicing-continuous-integration-deployment/
How to create seamless modal forms with Turbo Drive
Turbo Frames inspired us to ask for a piece of html to work regardless if it is rendered on it’s own page, or as part of another page. I’m borrowing the same idea to apply it to modals. Goal is to not introduce any changes to the backend code (no Turbo Streams), but still be able to submit forms and see validation errors. [more inside]
Preloading Rails applications in production
When it’s time to take your application online, there are several decisions to make. Today I would like to talk about application preloading and explain why I prefer preloading applications in production.
The Era of Bridgetown v1 Has Begun. Welcome to the “Pearl”
Named after the famed Pearl District on Portland’s west side, I’m pleased to announce the first public alpha release of Bridgetown 1.0 (technically 1.0.0.alpha5). v1 is chock full of major advancements for the platform. In addition, we’ve launched a dedicated fundraising site for Bridgetown. We hope you join the campaign to push v1 over the finish line, and please help us spread the word so other interested Rubyists and web developers may contribute as well.
How to use jQuery & jQueryUI with Esbuild
Want to use older Javascript libraries like jQuery with modern JS bundlers like Esbuild? There are some tricks like learning about import hoisting, but it’s easier than you might think. See how to use jQuery & jQueryUI with Esbuild
Rack Middlewares using Ruby on Rails
This post describes what Rack is and how to write Rack Middlewares using Ruby on Rails. It uses common Rails Client-Service Middleware Production examples.