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 DSL for SWT on ARM64/AARCH64
I am happy to announce that Glimmer DSL for SWT Version 4.22.2.1 just shipped with official support for ARM64/AARCH64 on Mac and Linux. [more inside]
Dynamic user content in Rails with Liquid tags
Using the liquid gem to allow users to create dynamic content safely in your Rails apps
Rails, Cypress : testing the whole stack is definitely easier
Cypress is a well-known tool for JavaScript developers. It allows elegant end-to-end testing of any application. For Ruby-on-Rails, it’s an extremely relevant tool to use. [more inside]
Arrays in Ruby
Hello all, I have released a video about Arrays in Ruby, one could watch it here
Remove files or folders from remote git
Ways to remove files or folders from the remote and local repo. [more inside]
Deploy secure, versioned secrets for Ruby on Rails
How easy is it to use occson with ruby on rails application:
Perfect Shape - Pure Ruby Geometric Algrithms
Perfect Shape 1.0.0 was released today, providing the Ruby community with an open-source library of Pure Ruby Geometric Algorithms. The reason behind creating this library was that before, there were no comprehensive geometric algorithm libraries in Ruby that covered all the geometric shapes like rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves. Most of them either lacked support for certain shapes like arc or lacked algorithms for checking point containment in every shape, including Cubic Bezier Curves. Thankfully, Perfect Shape addresses that issue completely for the Ruby community. [more inside]
Enumerating XKCD-style passwords with Ruby
I wrote a short blog post on how to enumerate XKCD-style passwords with Ruby. I show how to use the wordlist and chars gems to build and enumerate complex password patterns.
N1Loader gem to solve N+1 issues of any kind
Check out the new gem N1Loader that provides an easy way solve N+1 issues of any kind in your applications. [more inside]
Ruby Conferences & Camps in 2022 @ Planet Ruby - What’s Upcoming?
Hello, thanks to the contribution of Andy Maleh I added a new datafile and page for 2022 to collect upcoming ruby (and rails) conferences & camps around the world. For a first listing what’s upcoming in 2022, see Ruby Conferences & Camps in 2022 - What’s Upcoming?. Yes, you can. Add more conferences and camps. PS - Note: This is a public service from a banned for life ruby (reddit) member - the reason - what have you done for the ruby community - zero, nada, zilch.
Rubber Duck Dev Show Episode 26 | The DarK Side of Open Source
Hear two rubyists discuss the dark side of open source:
Track and fix huge Active Record instantiations in Rails
I wrote a post on continuous monitoring of excessive Active Record instantiations and how to deal with them.
Visualize executable code
Check it out my gem Lecter. I am looking for contributors. Stars, pull requests, issues and questions are welcomed!
Bad Ruby: Hash Value Omission
I wrote down some thoughts on Ruby 3.1’s hash value omission syntax.
Ruby, map with index
There’s always a tiny doubt about how to “map with index” when using Ruby. Let’s see how, and we’re also going back to basics of Ruby map in this article. [more inside]
Weird Ruby: Heredoc Delimiters
The next installment in my Weird Ruby blog series.
How to reduce your method calls by 99.9% by replacing Thread#pass with Queue#pop
When doing multi-threaded work in Ruby, there are a couple of ways to control the execution flow within a given thread. In this article, I will be looking at Thread#pass and Queue#pop and how understanding each of them can help you drastically optimize your applications: [more inside]
Configuring Rails for headless tests
I wrote a post on configuring Rails system tests for headless and headfull browsers.
How to start a Ruby on Rails 7 app with Hotwire and Tailwind CSS
There are a lot of new features in Rails that might confuse you if you’re new to the framework. In this video I create a new Rails 7 project, and I explain what the different options mean when creating new projects. [more inside]
Rails 7 application inside Docker on macOS
Sometimes we want to play with the new version of Ruby/Rails, but in order to do so we need to install dependencies which quite often is not so seamless. So let’s take a look how to use Docker and shell commands in order to quickly start new project with any combination of Ruby/Rails version and keep the macOS itself clean as a baby’s bottom.
Adding database level check constraints to Rails validations
Strengthen your data integrity with check constraints:
💎 Ruby SMTP mock - mimic any 📤 SMTP server behaviour for your test environment
Flexible Ruby wrapper over smtpmock. Mimic any 📤 SMTP server behaviour for your test environment and even more:
Rubber Duck Dev Show Episode 25 | JavaScript Options in Rails 7
Hear two rubyists discuss the different JavaScript options available in the newly released Rails 7: