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.
Behaviour Driven Development in Ruby with RSpec
We’ll learn about RSpec and how it helps with Behaviour Driven Development in Ruby:
Lode 1.0.0: A PStore enhancer
Lode — as in geological deposit or a vein of minerals — is a PStore of object data that can be mined for valuable information. Granted, the PStore gem is a more esoteric default library written by the Ruby Core team but, with Lode, you can build upon PStore with more flexible functionality that wasn’t possible before. Enjoy!
Rails on Docker without Docker
I wrote to share observations I’ve made and questions I’ve gotten about Docker, Kamal, and Fly.io. The biggest surprise to me is how some Rails devs don’t want to take time away from building their apps to install, learn, and figure out Docker, so I make a case for how Fly.io can gradually introduce Docker without slowing down velocity.
Solid Queue & understanding UPDATE SKIP LOCKED
Recently, 37signals open-sourced Solid Queue and Rosa Gutiérrez Escudero’s blog made us look into “UPDATE SKIP LOCKED”. Here is the blog we have written on Solid Queue & understanding UPDATE SKIP LOCKED.
ViewComponent in the Wild III: TailwindCSS classes & HTML attributes
Ruby on Rails full-stack development is back on track and GitHub’s ViewComponent library is still #1 for bringing sanity to HTML; in this post, see how to manage TailwindCSS classes and HTML attributes in view components: ViewComponent in the Wild III: TailwindCSS classes & HTML attributes
Extralite 2.6 Released
I’m excited to announce the release of Extralite 2.6. Extralite is a Ruby gem for working with SQLite databases, offering great performance (up to 14X the performance of the sqlite3 gem!), comprehensive support for concurrent query execution, and advanced features such as batch query execution and backups. [more inside]
Punks, The Mini Edition (12×12px) - Let's Generate The Presidents and Punk Rocks
Hello, i updated the quick starter kit for punks, the mini edition in 12px (“classic” is 24px). yes, 75% less pixels. Generate the presidents (of the united states), that is, joe (biden), donald (trump), nikki (haley) or let’s rock the punks with punk rocks. use text-to-image prompts. e.g. joe, regular shades, blue cap or rock gray, peak spike red. Yes, in ruby. happy pixel pushing with ruby.
Rails form_with tutorial
“form_with” is a Rails helper that allows the construction of web forms optimized for communication with the server. [more inside]
Numeric operations on value objects in Ruby
Here’s a little Ruby puzzle. Imagine you have a Value class that wraps a number, and implements numeric operations. How would you go about implementing the class in a way that lets you do something like 2 + Value.new(3) and returns Value.new(5)? [more inside]
RubyWM - an X11 window manager in pure Ruby
I’ve just pushed a still very rough version of my Ruby X11 window manager to Github [more inside]
Montreal.rb Jan 2024 Building an AI Medical Scribe in Ruby
The video of the Jan 2024 Montreal.rb Ruby Meetup A.I. talk “Building an AI Medical Scribe in Ruby” by Jean-Sebastien Boulanger (CTO of Circle Medical) has been posted. Description: “In this talk, I’ll share insights from our experience creating an AI medical scribe using Ruby at Circle Medical, a hybrid primary care provider seeing over 50,000 patients monthly. We leveraged Large Language Models (LLMs) to create a scribe to enhance clinical documentation and save doctors’ time.” [more inside]
New version of actual_db_schema gem
Just released version 0.7.0 of the actual_db_schema gem! Now it tracks the branch from which phantom migrations are run. See the PR: [more inside]
Build an Event Ticketing System with Rails
Build an Event Ticketing System with Rails
Unleashing the Magic of Ruby on Rails: A Fun-filled Journey into Web Development Wond
Are you ready to embark on a magical adventure through the whimsical world of Ruby on Rails? Buckle up, fellow developers, as we take a joyous ride into the enchanted realm of web development.
Reading Kamal configuration
Ever thought of reusing your Kamal’s config/deploy.yml configuration? This is how.
Rubygems introduced a file option to specify Ruby version in Gemfile
Rubygems introduced a file option to specify the Ruby version in Gemfile. [more inside]
Rails 7.1 Adds path_params Option For url_for Helper Method
With Rails 7.1, the path_params option for the url_for helper method allows specified params to be used exclusively for named segments under scoped routing without unnecessarily appending parameters to every URL. [more inside]
Tailwind and Ruby-on-Rails starter kit
Yes, I know, starter kits are all the rage nowadays, but I needed something more design-centric. Flowbite being the best option IMHO so far. [more inside]
Composite primary keys in Rails
There are scenarios where a combination of columns needs to be used as the primary key. This is where composite primary keys come into play. This article explores composite primary keys, how they work in Rails, when they should be used, and what to consider when using them. [more inside]
Speed Up Your Ruby on Rails Application with LiteCache
In the fifth part of this series, we’ll use LiteCache to speed up our Rails app: