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.
Debugging Ruby projects in Visual Studio Code
In this article I explain how configure Visual Studio Code debugger for your Ruby project in clean and simple way using .rbenv, and bundler. [more inside]
Cypress for Ruby on Rails developers
In this article, we demonstrate how to integrate Cypress into a Ruby on Rails development cycle by setting up tests in both local and CI environments. Check it out!
Ruby Pattern Matching
Go-to reference for Ruby Pattern Matching https://medium.com/cedarcode/ruby-pattern-matching-1e84cab3b44a
Why do we fail at abstractions?
We have all been there. We got a task to introduce totally new functionality. New database relations, controllers, services, models, views. We all said: this time it will be different. We asked the right business questions, and designed exactly what was requested. In spite of that, three sprints later, things got messy. The code is rigid, the business requirements have changed and the project is out of hand, again. [more inside]
From TravisCI to GitHub Actions
If premature optimization is the root of all evil, should procrastination until the right tool arrives be divine? If so, then yours truly would be the Patron saint of pragmatic & lazy programmers everywhere. I’m no adoption curve laggard, rather more like an early majority adopter with an extended view of the x-axis 😅 and I’m here to convince you that now is the right time to reevaluate your CI/CD needs.
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: 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