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.
Glimmer Wordle 1.1.0
Glimmer Wordle 1.1.0, which is written in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), has been released with a number of improvements. [more inside]
S3 direct file upload using presigned URLs from React and Rails
Recently, we were working on a project where the backend was a Rails API and the front-end application was written in React. We had to implement a feature for a file upload. We worked out a solution to upload files directly to S3 using presigned URLs.
Rails administrate : big tutorial, bits of philosophy
administrate is a gem that allows you to build an admin dashboard. It’s often qualified as DSL-less admin builder, i.e. every file your admin dashboard rely on, can be fully overridden by the developer. Let’s see how. [more inside]
Glimmer DSL for LibUI Progress Spinner
 I received a GitHub issue request the other day asking how to implement a progress spinner in Glimmer DSL for LibUI (Ruby Desktop Development GUI Library). I did a quick implementation of it using area vector graphics, and documented it under the newly added Area Animation section in the README.  [more inside]
Rubber Duck Dev Show Episode 31 | How To Learn a New Code Base
Hear from two rubyists about ways you can learn a new code base: https://www.rubberduckdevshow.com/episodes/31-how-to-learn-a-new-code-base/
Glimmer DSL for SWT Video Tutorial 4 - Hello, Layout!
The Glimmer DSL for SWT Video Tutorial 4 is out! It walks software engineers through Hello, Layout! [more inside]
Introduction to Hotwire in Ruby on Rails (video)
With the release on Rails 7, Hotwire has generated a lot of confusion among Rails devs. So in this video, we’re going to look at how Hotwire works together with Stimulus and Turbo. [more inside]
Ruby - attr_accessor, attr_writer, and attr_reader
In Ruby, object methods are public by default, while data is private. To access data, we use the accessor method. [more inside]
The Economics of TDD
Getting started with TDD can be challenging, but it’s a game-changer. The increased speed and ROI cannot be compared with other development methods such as waterfall. [more inside]
Truemail 2.7.0 has been released 🚀 configurable plain Ruby 📨 email validator
Added ability to specify SMTP port number for SMTP validation layer. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
9 Ways To Make Slow Tests Faster
A test suite will gradually slow down unless it is dutifully maintained, dragging the team’s morale down and making your organization miss deadlines. [more inside]
PG zero-downtime migration from int to bigint (with Ruby on Rails notes)
If you have an integer column you must migrate to a bigint column and you can’t afford downtime (or you’re interested in how that can be done) this blog post gives the recipe. [more inside]
Cucumber Founder Aslak Hellesøy on TDD and BDD
🎧 Great interview with the Cucumber founder - Aslak Hellesøy [more inside]
An Introduction to the ViewComponent Gem
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It’s a framework for creating reusable, testable & encapsulated view components that integrate seamlessly with Rails. In this article, Abiodun Olowode shows us how to use ViewComponent to make our Rails views more manageable. https://www.honeybadger.io/blog/ruby-view-components/
Multiple system Ruby versions on Fedora-based systems
Hi all. If you haven’t heard it yet, you can install different Ruby versions via modular packages on Fedora, CentOS Stream, RHEL, or Rocky Linux. You don’t need chruby or rbenv to have more choices.
Action Mailer : a tutorial
Action Mailer is already included in any new Rails application. However in this tutorial we will take time to see how each piece of code works. [more inside]
Glimmer DSL for Tk Hello, Labelframe and Scale!
Glimmer DSL for Tk (Ruby Tk Desktop Development GUI Library) v0.0.54 and v0.0.55 just got released with two new samples: Hello, Labelframe! and Hello, Scale! [more inside]
Simple CSV Parsing (with error handling)
Parsing CSVs doesn’t have to be complex. In this article I walk you through how to simplify any complexity that would normally require multiple objects, complicated nested loops, etc. Enjoy!
Multiple CSS files using TailwindCSS gem
https://github.com/loqimean/tailwindcss_merger [more inside]