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.
Your app is not your business!
Separating the business domain apart from the application layer can help a lot in untangling your code and simplifying architecture. Read more
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. Read more
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. Read more
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. Read more
Ruby Fiber Scheduler
Ruby can work asynchronously with just a Fiber Scheduler and a couple built-in methods – no frameworks are required! Read more
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:
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! Read more
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. Read more
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. Read more
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. Read more
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.
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. Read more
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. Read more
Cucumber Founder Aslak Hellesøy on TDD and BDD
🎧 Great interview with the Cucumber founder - Aslak Hellesøy Read more
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.
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. Read more
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! Read more
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
Hi everybody, I think everybody who works with a tailwindcss-rails gem had a problem with just one file, so I have a solution for this, just add my gem to your project, create a folder “app/assets/tailwindcss_stylesheets” with your .css files inside and just start a server using ‘bin/dev’ or ‘rake tailwindcss:watch’ no more, it’s a simple solution. Read more