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.
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]
The Rise of Fullstack Ruby & the Next Frontier of the Web
Today, right now, right this very minute, is the absolute best time to be a fullstack Ruby/web developer! And tomorrow will be even better.
Rubber Duck Dev Show Episode 21 | What is DevOps?
Hear two rubyists discuss what is DevOps? https://www.rubberduckdevshow.com/episodes/21-what-is-devops/
Kubing Rails: stressless Kubernetes deployments with Kuby
Finding a convenient and stressless way to deploy Rails apps on Kubernetes with Kuby: https://evilmartians.com/chronicles/kubing-rails-stressless-kubernetes-deployments-with-kuby
The Strategy Pattern in Ruby
The Strategy pattern allows you to provide different variations of an algorithm by injecting them as dependencies. [more inside]
Refactoring Javascript with Stimulus Values API
The Stimulus JS values API helps make Javascript easily configurable. In this screencast, we walk through refactoring a simple countdown timer into a reusable countdown controller with Stimulus. Watch the Refactoring Javascript with Stimulus Values API screencast
Effective programming in Ruby with dry-effects!
dry-effects is a neat library allowing us to solve common programming problems in a new, coherent way! Checkout my 2 examples of real-world usecases! [more inside]
command_mapper 0.1.0 and command_mapper-gen 0.1.0 released!
command_mapper is a new library for mapping in the options and arguments of external CLI commands to Ruby classes. This allows you to execute and interact with commands as if they were classes. command_mapper also provides a mini-type system for validating/formatting values and prevents any option or command injection for you. [more inside]
validates_by_schema 0.5.0 released - validate uniqueness based on unique indices
validates_by_schema automatically adds ActiveRecord validations based on your database schema column types and limits to keep your code DRY. The new release supports uniqueness validations that are generated from single or multi-column database indices.