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.
Correct Ruby Threads and Activerecord Connections
Using threads can be an efficient way to speed up your response time. But if you’re careful, you’ll quickly exhaust your database connections! Here are the considerations and steps to nicely threaded Activerecord.
Infinite Scroll in Rails with Stimulus.js
Adding infinite scroll seems tricky, but it’s really not. We can use Stimulus.js to listen for scroll events and load the next page dynamically. Check out the screencast on How to add Infinite Scroll with Stimulus.js and Rails
Limit Everything: Timeouts for shell commands in Ruby
How I fixed a pesky problem in the speakerdeck slide processing system by adding timeouts to shell commands and what I used to accomplish it. [more inside]
Building Spatial Interfaces For Sprint Tracking
Like everyone we work remotely. But we really miss the spatial constraint of the whiteboard in our office. So we took our sprint planning in Linear and added onto it the physical constraints we had in the office: https://blog.getcensus.com/building-spatial-interface-for-sprint-tracking/
A Simple Coding Study in Ruby
This is a small coding exercise, like an artist’s life study, in Ruby. The subject is ivy on a windowsill, rendered feature by feature into Ruby ASCII art. The intention is to get better at the practical skill of coding the same way an artist improves at the practical skill of making art.
Making Your Rails Console Interesting..
Link: https://blog.joshsoftware.com/2020/01/20/making-your-rails-console-interesting/
football.db gem family (2020.5.10 update) - zero-config open football datasets
Hello, I’ve updated all gems in the football.db family / series that let you use the (pre-packed & parsed) open football datasets for countries, leagues & cups, clubs and more “out-of-the-gem” with zero-config. Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.
Using react components in Active Admin
I wrote an article about a few easy steps to integrate react components into Active Admin’s forms. [more inside]
New release Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Added ability to use not RFC MX lookup flow (only MX and Null MX records will be checked on the DNS validation layer). Be sure that email address valid and exists. https://github.com/rubygarage/truemail
How to allow users to sign in using mobile number with Devise and Rails?
Have you ever required to use different custom field over email for authentication? [more inside]
Implementing Advanced Search in Ruby on Rails Application with Ransack
Learn more about how to implement searching and sorting feature quickly in our Ruby on Rails application using Ransack gem. [more inside]
HealthCheck alternative
HealthBit — tiny HealthCheck Alternative, check of Rack apps like Rails, Sinatra for use with uptime checking systems like Kubernetes, Docker or Uptimerobot with custom checks, password protection and multiple endpoints.
Setting up multi-device/browser session tracking for Devise
An approach for allowing users to view all logged in sessions and terminate other sessions from the current one. [more inside]
Rails Event Store 1.0 released
Rails Event Store is a Ruby library to persist, retrieve, publish and organize application architecture around domain events in an event-driven fashion. It’s not a database itself, building on top of and existing (typically an SQL) data store in the application. It makes a great foundation for CQRS, Event Sourcing and loosely coupled components in applications driven by domain events. [more inside]
Setting up Rails Performance dashboard with influxdb and grafana
In this article we will create very simple and minimalistic performance dashboard for a Rails application which will help us monitor controller action runtime, database query runtime and view rendering runtime. [more inside]
Building a Toy Programming Language in Ruby
Few projects are as enticing or as rewarding as creating your own programming language. It’s impractical, sure. But as an exercise, it strengthens muscles that most of us don’t get to use very often and makes us better all-around developers. In this article — the first in a series — Alex Braha Stoll shows us how to get started building our own toy language and interpreter from scratch using Ruby. https://www.honeybadger.io/blog/stoffle-introduction/
Supercharge Your Bridgetown Site with Ruby Front Matter
You can now write real Ruby code directly in your Front Matter! This feature is available for pages, posts, and other documents–as well as layouts for site-wide access to your Ruby return values.
Let your customers change the texts in your Ruby apps
Are you fed up with your customers or managers asking you to change static texts in your Ruby projects? What about letting them change the static texts themselves? But knowing Git and how to create pull requests is hard… [more inside]
How to debug webpack on Rails
Even though Webpacker hides away much of the complexity of webpack configuration, sometimes it’s necessary to peel back the abstraction layer. [more inside]
5 Ways to Splat in Ruby
We take a look at 5 different ways to leverage Ruby’s splat (*) operator. Read More