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.
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.
Debugging ActiveRecord connection pools
A few weeks ago I ran into a Rails bug that caused our database pool setting to be ignored (fixed in Rails 6). In this video I step through the debugging process I used to find the cause.
Why Do We Need Application Servers in Ruby?
We all use Puma, Unicorn, or a similiar application server for our web applications. But do you understand WHY we use them? Why doesn’t Rails just do everything? Why can’t we use Nginx or Apache? Everything explained in this new article: https://www.rubyguides.com/2019/08/puma-app-server/