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.
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: https://dev.to/jalerson/be-careful-when-using-error-reporting-services-and-serverless-functions-5ei9
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
https://blog.saeloun.com/2019/08/27/rails-6-touch_all-method.html
Introducing bundler-leak gem
A simple way to find known memory leaks in your dependencies https://fastruby.io/blog/bundler/memory-leaks/introducing-bundler-leak.html
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]
Solidus deployment on AWS with Opsworks and Chef
This post shows (quite literally, as there are soo many screenshots) how to deploy Solidus, the open source eCommerce platform based on Ruby on Rails, on Amazon AWS with Opsworks, Chef and Opsworks Ruby.
footballdata gem - download & import 22+ leagues from Joseph Buchdahl's Football Data
Hello, I’ve put together a new sportdb-source-footballdata gem / library that lets you download & import 22+ top football leagues from 25 seasons back to 1993/94 from Joseph Buchdahl’s Football Data website (updated twice a week). Leagues include the English Premier League, the German Bundesliga, the Spanish Primera Division (La Liga), the Brazilian Série A, and many more. Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.