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.
To join or not to join? An act of #includes
Ever wondered how to get rid of those awkward N+1 queries? Join the table as we discuss Rails’ eager loading strategies in this magnificent article by Tiago Farias. Read more
Guide to Become a Full-Stack Developer
💥 What is the Full Stack Developer? Why should you become a Full Stack Developer? Read more
Random Ruby Newsletter #27
A new issue is published! Read how to improve the speed of test suite and check out several interesting tools such as Ruby compiler. Read more
Overmind and Hivemind, Procfile-based process managers for local web development
Procfile, introduced by David Dollar’s foreman, is a popular format for declaring processes—everyone who ever used Heroku, knows it well. Anyone who didn’t, really should learn it—it’s an easy way to declare all the stuff that is needed to run your project (web app, additional apps, background processing, tools and daemons) and launch it. Read more
[Screencast] Restricting Access by IP Address
Learn to lock down your application or parts of your application by IP Addresses. https://www.driftingruby.com/episodes/restricting-access-by-ip-address
How to Integrate Stripe Checkout in Your Rails App
Stripe Checkout is a globally renowned payment gateway that you can integrate into your Ruby on Rails application. Read about how to integrate Stripe Checkout into your Rails application.
CapsuleCD v2 Released
CapsuleCD is a generic Continuous Delivery pipeline for versioned artifacts and libraries written in any language. It’s goal is to bring automation to the packaging and deployment stage of your library release cycle. CapsuleCD is incredibly flexible, and works best when implemented side-by-side with a CI pipeline. Read more
GraphQL-Guard: A Simple Authorization Gem for GraphQL 🎉
I created a new gem called graphql-guard which provides a field-level authorization for GraphQL. Previously, the only authorization solution for Ruby was GraphQL Pro which is a paid and not open-sourced version of GraphQL. graphql-guard can work with any other authorization libraries such as CanCanCan or Pundit. I recently published a stable v1.0.0, my company uses it on production ;)
Building a webserver in Elixir
Talk for a Ruby audience, given at LRUG. Introduction to Elixir processes and a practical overview of using this concurrency model. Slides and Video
First 10 minutes with Eventide-Autonomous Services and EventSourcing Toolkit for Ruby
Recently I find out about Eventide project and it looked really nice for me based on the initial documentation so I wanted have a small look inside. Here is what I found in a first few minutes without knowing anything about Eventide so far. Read more
Integration of chatbot using Ruby on Rails
Integration of chatbot using Ruby on Rails
... with __dir__ we can restore order in the Universe
This post about the method in Ruby Programming Language Kernel#__dir__ and restoring order in the Universe.
APIQ CMS Models extension 1.0 release
Not too much time passed since APIQ CMS 1.0 release - now announcing the most useful Models extension 1.0 release.
A Deep Dive into CSRF Protection in Rails
Recently I did a deep-dive into the Rails codebase to understand how the CSRF protection feature has been implemented. I look at how the CSRF tokens are initially generated for each response, and how they’re used on an incoming request to validate the authenticity of the request. Read more
Why it is just lazy to bad-mouth Ruby on Rails
I am getting too proficient in answering doomsday “Ruby on Rails is dead” articles. This is yet another one but with a different twist as I look back and with a bird’s eye view of the past decade and a half.
Tips on Treating Flakiness in your Rails Test Suite
Learn what are some common sources of flaky test behaviour in a Rails environment, as well as optimal ways to avoid them.
Ruby State Machine – AASM Tutorial with Sequel, SQLite, Rake and RSpec
Have you ever had a problem managing a record’s state change logic? Here comes AASM – a state machine for Ruby. Read more
The --profile hammer and RSpec
In this post I quickly highlight my new-favorite RSpec flag, --profile. Check it out if you haven’t used it before.
Elixir Envy ᐅ Ruby
There has been much envy in the Ruby community over Elixir having the pipe operator as can be witnessed by the many gems, code snippets, and blogs arising from it. This blog post lists and describes various implementations which have been made or written about it.
Elixir style pipe operator for Ruby
Rubyists can now enjoy a data pipeline operator similar to Elixir’s. Not really advised but certainly fun.
Bundler and private dependencies
A look at the many ways you can tell Bundler how to access private dependencies
Event sourcing and autonomous (micro) services in Ruby
Microservices, Autonomous Services, Service-Oriented Architecture, and Event Sourcing Toolkit for Ruby with Support for Event Store and Postgres Read more
Unsupervised learning using k-means clustering in Ruby
The k-means clustering algorithm is a powerful unsupervised learning algorithm for clustering data. In this blog post I will show how to use the k-means algorithm in Ruby. I will walk through an example where I use the k-mean algorithm to divide California into a number of distribution territories, for my fictitious beer distribution business. You can read more here: http://www.practicalai.io/unsupervised-learning-using-k-means-clustering-in-ruby/
What if? Perpetual question cycles of responsible developers
We all love it when a plan comes together, yet let’s face it, 💩 happens… And we cannot decently just ignore it and turn a blind eye. Hopefully we thought about edge cases upfront… Read post on medium