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.
render_async 2.1.6 released
The new version with bug fixes is out! Check it out here
sportdb-readers Gem v1.0 - sport.db Readers for Leagues, Clubs, Matches, Etc.
Hello, I’ve put together the sportdb-readers gem / library v1.0 that
lets you read in (import) datafiles in (structured) text into any SQL database (using the sport.db schema / tables) using SportDb.read. Try it with the English Premier League e.g. (2019-20/1-premierleague.txt) or the Deutsche Bundesliga e.g. (2019-20/1-bundesliga.txt) or the World Cup 2018 e.g. (2018--russia/cup.txt), or start your very own league, see the league quick starter guide, for example. Enjoy the beautiful game with ruby. Cheers. Prost.
Setup Action Mailbox with Postfix
Having trouble to setup action mailbox with postfix? Read these articles to know how you can in detail. This is a two-series tutorial to setup action mailbox with postfix. Part 1 - https://thedevpost.com/blog/setup-action-mailbox-with-postfix-part-1/ Part 2 - https://thedevpost.com/blog/setup-action-mailbox-with-postfix-part-2/
Getting started with a legacy Rails application
There’s a good chance that your next Rails job will involve working with an existing application. Here’s how I’ve recently gone about learning several new-to-me codebases.
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. Read more
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:
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:
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. Read more
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.
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? Read more
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. Read more
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. Read more
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. Read more
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. Read more
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.