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.
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.
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 :)
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.
Mastering Rubocop
We all love rubocop gem. It makes code cleaner and closer to standards; it is easy to say something like rubocop -a or even rubocop -A and see how your code is getting better, at least more stylish.
Advanced interview questions for a Ruby developer
Have you ever felt frustrated when trying to prepare for an interview, and getting only questions like what is an MVC or what is the difference between a Class and a Module? Well, me too…
What's New in Rails 7.1
Let’s take a look at what we can expect from the upcoming Rails 7.1 release:
Step-By-Step Guide to Generate 100 Ordinal Punks In Your Own Terminal Via Text-Prompt
Hello, I have written-up a step-by-step guide to generate a “pixel-perfect” copy of the Top Selling 100 Ordinal Punks (in your own terminal) via text-prompts¹ (“attributes”)’. Yes, in ruby (using the pixelart gem, the artfactory gem, the punks gem, the backgrounds gem, the chunky_png gem, the cocos gem, the csvreader gem, & some more. Happy pixel pushing with ruby. Cheers. Prost. PS: Note¹ - Sorry - no artificial intelligence (a.i.) models in use :-( - just plain old “hard-coding by-hand”. Update While working on filing the counter notice - see the gitlab mirror backup for the step-by-step guide.
Adding Sorbet to a Rails project
Sorbet is a static type checker for Ruby. In this post, we will walk though how we can add sorbet to a new Rails app. Along the way, we will also see a few examples of how sorbet can help you identify and fix bugs in your code. [more inside]
My first Hanami app
In my opinion, Hanami is a breath of fresh air in the ruby world. Let’s take a look at why, and how it’s different from Rails.
ordinals gem - "right-clicker" (off-chain) ordinals (pixel art) machinery & helpers
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, ordinals that incl. the ordbase command-line tool that lets you download, downsample & compose all-in-one ordinal (pixel art) collections from the bitcon blockchain via ordinals.com. See the ordinals readme for a ordinal punks step-by-step real-world example. New to ordinal punks? See Awesome 100 Ordinal Punks (Anno 2023) Notes. Happy blockchaining with ruby. Is bitcon up for a come back with ordinal digital artefacts? Are 8-bit golden (pixel) punks or birds (in png) the new digital gold nuggets? Cheers. Prost.
Granting at least once delivery
Exactly-once is the message delivery guarantee that most developers want to achieve in their systems. However, the implementation of the set of rules backing it up should include the application layer. [more inside]
[ANN] rodauth-oauth 1.2.0 released
rodauth-oauth 1.2.0 has been released. [more inside]
RubyFlow has moved to fly.io
Due to Heroku turning into a Kafkaesque nightmare, I’ve moved RubyFlow over to fly.io. This comes with some teething issues due to the antiquity of the code, but I think I’ve sorted most of it out now. Let me know if any problems. (The front page is a bit slower to load due to how I’ve got the database temporarily set up in a separate data centre 😬 but this will resolve itself in due course.)
Rubber Duck Dev Show Episode 73 | Hobby Programming With Nick Schwaderer
In this episode, we discuss hobby programming with Nick Schwaderer:
Attribute level permission control in Rails
In Ruby on Rails, authorization can be implemented at the controller level, action level, or attribute level:
InvoicePrinter 2.3.0 released!
A Ruby library, server, and command line client for generating PDF invoices got a brand new version. Prawn 2.4, Ruby 3.1+, the new description field and more.
Open Source Heroes
is not fully related to Ruby, but a fun fact, the well-known Rubyist Ankane is #64 in global rating as an individual by a number of stars of his projects.
Ruby Conferences & Camps in 2023 - What’s Upcoming? Another Update
Hello, I have added 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 Day Italy, Helvetic Ruby, Ruby Kaigi, Ruby Conf Thailand, Wrocław Ruby, 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. PPS: For the record I posted to r/rails too and - surprise, surprise - got censored - for what? Update: After asking the mod to unflag I am now muted and perma-banned on r/rails.
ActiveRecord: finally understand transactions
Database transactions are an essential tool to master. Because ActiveRecord’s transactions interface is not intuitive (and not well designed IMO), this article explains how to use it and explains what pitfalls you should pay attention to. [more inside]