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.
How to get the most out of the json-api serializer gem
Tips and helpers to facilitate the use of the json-api gem:
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
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.
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?
Kubing Rails: stressless Kubernetes deployments with Kuby
Finding a convenient and stressless way to deploy Rails apps on Kubernetes 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.
Rails 7 supports tracking of belongs_to association
The article explains Rails 7 association_changed? and association_previously_changed?
These two methods are added for tracking the changes for the belongs_to association.
Less code 👉 better performance? FIND OUT (Opal)
🧗♀️ A great journey into improving the quality of the JavaScript output produced by the Opal compiler, that unexpectedly lead to better performance 🙌 and and more readable code 💻. [more inside]
Video: How to use React with Rails 7
Rails 7 is coming and it has changed the way it deals with JavaScript (again). In this video tutorial, we’ll look art how to use React with Rails 7 using the default import maps method. This lesson is part of a new free course on full-stack Rails. In the next lessons, we’ll also look at using JavaScript bundlers (esbuild, rollup.js, Webpack) and gems like react-rails and react_on_rails to build a modern full-stack Rails 7 app. [more inside]
Signal handling in concurrent apps with Ruby and Polyphony
Polyphony is a library for writing highly concurrent Ruby apps. Polyphony harnesses Ruby fibers and a powerful io_uring-based I/O runtime to provide a solid foundation for building high-performance concurrent Ruby apps, while letting developers use stock Ruby core and stdlib classes and APIs. In order for provide a solid developer experience, Polyphony reimplements different parts of the Ruby runtime functionality, which are adjusted so developers will see a consistent and reliable behaviour. My latest article discusses the problem of signal handling in concurrent Ruby apps.
Rubber Duck Dev Show Episode 20 | How Do You Start Testing
Hear two rubyists discuss different ways to start adding tests to your project:
Glimmer DSL for Specification - Specification-First Engineering
Despite Ruby’s highly expressive nature, all testing toolkits written in Ruby are either imperative (e.g. using assert or expect), thus losing expressiveness and focusing software engineers on the wrong thing, or mix non-Ruby code with Ruby (e.g. cucumber & gherkin), thus missing out on the simplicity of Ruby. Glimmer DSL for Specification aims to provide a simple minimalistic and noun-based declarative syntax. [more inside]
Draw Color Repeat - Sandra's Samples
DCR (Draw Color Repeat) is a minimal subset of Logo that teaches computer programming to young children in elementary school. Sandra, an elementary school girl, was kind enough to share her own programs written in the DCR Programming Language. [more inside]
Writing AWS Lambda Functions in Ruby
AWS Lambda lets you run your code without worrying about the nuts and bolts of server management or scaling. You might even say it’s “serverless.” In this article, Jeffrey Morhous shows us how to get started writing Lambda functions in Ruby.