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.
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. https://hanamirb.org/blog/2021/12/07/announcing-hanami-200alpha4/
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. https://coolrequest.dev/2021/11/25/replace_select2.html
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: https://coolrequest.dev/2021/11/03/docker_image_rails_part1.html
How to get the most out of the json-api serializer gem
Tips and helpers to facilitate the use of the json-api gem: https://www.ginkonote.com/users/flo/articles/how-to-get-the-most-out-of-the-json-api-serializer-gem@rails
Two posts covering the basics of some security headers
We’ve been trying to improve the security of some of our Rails apps recently by improving which security headers we’re passing about. [more inside]
JavaScript in Asset pipeline
JavaScript file working fine in staging environment but in a production environment, Javascript functionality is not working as expected and it takes from public/asset folder, I think it takes old Javascript file in the production environment. How to resolve this issue?. Please provide us solution https://stackoverflow.com/questions/21969549/rails-application-css-asset-not-found-in-production-mode
Glimmer DSL for LibUI Bidirectional Data-Binding
Glimmer DSL for LibUI v0.4.11 just wrapped up a very important new feature that has been rolling out gradually over the last few 0.4.x releases: Bidirectional Data-Binding [more inside]
The State of Ruby Code Quality Tools in the HexDevs Podcast
Are you working on Ruby on Rails Applications that are constantly on fire, overwhelmed by technical debt? [more inside]
Running Rails on a Kubernetes Cluster: Part 2
Kubernetes is a popular way to deploy web services and applications using containers. In this, the second of a two-part series, Geshan finishes his step-by-step tutorial for getting up and running with Rails and k8s. https://www.honeybadger.io/blog/rails-kubernetes-cluster-2/
Ruby on Rails Application Monitoring with AppSignal
In this post, we will add AppSignal to a Ruby on Rails application to help give clear insights into application behavior. [more inside]