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.
Why does Rails 6 include both Webpacker and Sprockets?
A new Rails 6 application will install both Webpacker and Sprockets by default. Don’t they solve the same problem? This article dives into why Sprockets lives on even though webpack has surpassed most of its features and why you might want to choose one over the other. https://rossta.net/blog/why-does-rails-install-both-webpacker-and-sprockets.html
Neural Networks in Ruby: A Not-So-Scary Introduction
Building a neural network isn’t exactly like building a human brain, but it’s the closest any of us are going to get. In this article Julie Kent introduces us to neural nets as a concept and shows us how to implement a simple one in Ruby. https://www.honeybadger.io/blog/ruby-neural-networks/
Build A SaaS App in Rails 6 Book is Content Complete
Chapters 1 through 14 (AKA all of them) are all written and content complete. Both general grammatical editing and technical editing have been done thoroughly through the first 10 chapters! The pre-sale bundles have been updated with the latest content of the book. 🙌 [more inside]
render_async 2.1.6 released
The new version with bug fixes is out! Check it out here https://pragmaticpineapple.com/render-async-2-1-6-released/
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. [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]