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.
sportdb Gem Guide - Working w/ Football CSV Files - English Premier League 2019/20
Hello, I’ve updated the hands-on getting started guide for the new sportdb text library / gem. Let’s build the standings table for the English Premier League (EPL) for the 2019/20 season from all 40 matches (as of Sept/2) in the comma-separated values (.csv) format. Full article titled “Working with CSV Files”. Enjoy the beautiful game with ruby.
[Screencast] Push Notifications with ActionCable
In this episode, we look into using Push Notifications within our Rails application and then using ActionCable to broadcast Push Notifications to the user. https://www.driftingruby.com/episodes/push-notifications-with-actioncable
DNS rebinding attacks protection in Rails 6
See how Rails 6 has added protection against DNS binding attack issue that existed for a long time. [more inside]
Scope gates in Ruby: Part I
We’re going to talk about method and class scopes. SEE MORE
How to learn Enumerable really really ridiculously good
Enumerable. It’s one of the most important modules in Ruby. You use it all day, every day – to filter lists according to some criteria, query lists about their contents, divide them into groups… and a whole lot more. How do you learn all that this powerful module has to offer? Read more
Be careful when using error reporting services and serverless functions
We started to notice that Honeybadger eventually failed to report errors from our lambda functions, which is very tricky because we rely on it to notifies us when something goes wrong:
Magic comments in Ruby
An overview of magic comments and the precedence rules applied to them.. SEE MORE
Guided Demonstration: Building a gRPC application in Ruby
I have been writing a guided demonstration on gRPC usage with Ruby. Here are my blog posts and full demonstration repository. [more inside]
Upcoming Features in Shrine 3.0
Shrine is a versatile library for handling file attachments in Ruby applications. The upcoming version 3.0 will bring many new features and improvements, such as flexible management of processed versions, redesigned backgrounding feature, and coupled attachment from models. Read more about it here.
A new version of Ruby PDF invoicing library is comming out soon
Read about the changes in the upcoming InvoicePrinter 2.0 version. This includes buyer/seller boxes simplification, decoupling server from the library, offering sample TTY fonts as an add-on and official Docker support.
Rails 6 adds touch_all method to ActiveRecord::Relation
Introducing bundler-leak gem
A simple way to find known memory leaks in your dependencies
Load Rails Partials on Demand with New Toggle Feature in render_async 2.1.1
render_async allows you to load partials by reacting with a specific HTML element. [more inside]
A quick intro to Rails 6.0's Multiple Databases support
Here’s a quick walk through the basics of how to setup your database.yml, migrations, and models to take advantage of your different databases. Learn how to use Multiple Databases in Rails 6.0
Awesome Types & Type Signatures / Annotations for Ruby Page
Hello, I’ve updated the Awesome Types & Type Signatures / Annotations for Ruby Page that collects all things types, type signatures / annotations and more for ruby - incl. bool, bytes, buffer, enum, flag, record, data and more. Anything missing? Please, tell. Cheers. Prost.
OpenStruct in Ruby
A deep dive into the OpenStruct class: how it works, the specs and what happens behind the scene.. ENJOY
Working with Unicode Characters Beyond A to Z (Basic Latin 7-Bit Characters)
Hello, I’ve written-up a short article on “Working with Unicode Characters Beyond A to Z (Basic Latin 7-Bit Characters) in Ruby - Let’s Go International! Let’s Go World-Wide!” that uses the 1500+ football club names as a real-world example. Trivia Quiz: What’s the official unicode name for the ı character or for İ? Spoiler: Use Unicode::Name.of to find out. Cheers. Prost. Happy text processing with ruby.
How environment check works
In this article, we’re going to explore the following topics:
A simple, efficient worker queue for Ruby & PostgreSQL
queue_classic provides a simple interface to a PostgreSQL-backed message queue. queue_classic specializes in concurrent locking and minimizing database load while providing a simple, intuitive developer experience. queue_classic assumes that you are already using PostgreSQL in your production environment and that adding another dependency (e.g. redis, beanstalkd, 0mq) is undesirable. [more inside]