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.
Extralite - a new Ruby gem for working with SQLite databases
Extralite is a new Ruby gem for working with SQLite databases. In my latest article I discuss its design and compare it with the sqlite3-ruby gem.
Glimmer DSL for SWT 4.22.0.0
SWT 4.22 was just recently released, and you know what that means! It’s Glimmer DSL for SWT major upgrade time! Glimmer DSL for SWT 4.22.0.0 just got released to include SWT 4.22 among other big upgrades and changes. [more inside]
The Fastest Way To Load Data Into Postgres With Ruby on Rails
This article looks at 4 methods to load data into Postgres with Rails: 1) Inserting one record at a time 2) Bulk Inserts with Active Record Import 3) PostgreSQL Copy with Activerecord-copy 4) Using background jobs [more inside]
The Future of (Crypto) Punk's Not Dead - Tell Us What You Want To See in 2022!
Hello, A new year is upon us and I try my best to continue working (volunteering, really) on the pixel art programming - yes, in ruby - projects under the (Crypto) Punk’s Not Dead umbrella that incl. free pixel art, booklets, tools & scripts and much more. ++ Tell us what you want to see in 2022. Yes, you can.
How to Use Kredis in Rails
Kredis is a high level wrapper around Redis and makes life easy for anyone interacting with Redis. Watch the How to Use Kredis with Rails screencast where we build a recent searches feature that keeps track of recently submitted search queries.
puts_debuggerer is State of the Art Rails in 2021
There is a project on GitHub that lists/demonstrates state of the art Rails technologies in 2021. Interestingly enough, one of my gems, puts_debuggerer, made the list! [more inside]
What are the square brackets in my Rails migrations?
Let’s look at what these little square brackets are doing in our Rails migration files!
Minitest Heat
Minitest Heat is a Minitest reporter that helps you identify problems faster so you can more efficiently resolve test failures by generating a heat map that shows where failures are concentrated. You can see a preview of example test results on the wiki or install it and try it out on an existing project.
Rails 7 adds caching? and uncachable! helper
Starting with Rails 7, we can add caching? helper to check whether the current code path is being cached and uncacheable! helper to avoid fragment caching. [more inside]
Qeweney - a feature-rich HTTP request/response API for Ruby
Qeweney is a new abstract HTTP request/response API, developed primarily for Tipi a new high performance web server for Ruby. In my latest article I explore the design decisions behind Qeweney and how it can be used with Rack apps.
Hanami v2.0.0.alpha4
New API for Content Security Policy, Router helpers from actions, CLI enhancements.
Exploring dependency injection in Ruby
Classes depend on each other all the time. But the way you tie those classes together will determine how hard it is to change your code. Dependency injection can help you reduce that coupling and reduce your cost of change.
Replacing Select2 with Tom Select + Stimulus
We all used Select2. We all depended on it for a long time, for all our Select/Autocomplete needs. But it’s been showing signs of aging for quite a while, and it’s one of the last libraries that still keeps me tied to jQuery.
Glimmer DSL for Tk Contextual Menu
Glimmer DSL for Tk v0.0.49 ships with a new sample: Hello, Contextual Menu! It demonstrates the just added explicit support for Contextual Menus. These are also known as pop-up menus, which show up when right-clicking in an application. [more inside]
Episode 1: Why Ruby2JS is a Game Changer
Tune in for the debut episode of Fullstack Ruby! I’ve been on a few Ruby-themed podcasts over the past 18 months, but this is the first time I’m running a show about Ruby myself. To kick things off, I’d like to introduce you to Ruby2JS and explain why I think this technology is a game changer.
stdgems.org got an update
The Ruby standard library is now almost completely gemified. stdgems.org tracks which gems each version of Ruby ships with. It now has a new look and includes a table listing ALL gem versions since 2.2.0
[Screencast] Dabbling with Turbo
In this episode, we explore some of the new features with Turbo and interactions that we can do with little or no javascript. https://www.driftingruby.com/episodes/dabbling-with-turbo
Glimmer DSL for SWT Hello, Scrolled Composite!
First of all, the Glimmer DSL for SWT gem just reached 100,000 downloads on rubygems.org. Thank you! Secondly, Glimmer DSL for SWT v4.21.2.5 was recently released with a brand new sample: Hello, Scrolled Composite! [more inside]
Progress Report: Bridgetown is Now esbuild-Aware
We put a stake in the ground at the very beginning of the Bridgetown project that we’d embrace frontend developers via first-party Webpack integration. Now it’s time to move on and embrace the speed and flexibilty of esbuild.
Rails 7, Railties, and Sorbet at Shopify with Rafael França from Rails Core
We had Rafael as our guest this week on Remote Ruby to talk about Rails 7 (with a hint at a release date!), Railties, Sorbet, and lots of other goodies. Listen to the Remote Ruby podcast with Rafael França
Rails 7 introduces partial_inserts config for ActiveRecord
Rails 7 adds the partial_inserts config to config.active_record that is used to control partial writes when creating a new record. [more inside]
Building a Docker Image for your Rails Application
Step by step guide on building a docker image to run a Ruby on Rails application: