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.
Configuring Jumpstart to send a welcome sequence w/ Heya
Here are some notes I took while checking out Jumpstart and walking through the “getting started” experience of the gem I’m working on right now. [more inside]
Getting Started with Ruby on Rails and Kubernetes
Lean how to prepare a Ruby on Rails application for Docker and Kubernetes - https://littlelines.com/blog/2020/04/13/getting-started-with-ruby-on-rails-and-kubernetes
Fetching ancestors/sibling records per locale in ActiveRecord
Working with tables where there may be multiple columns referencing parent records. [more inside]
Redis connection pool in Rails
https://tejasbubane.github.io/posts/2020-04-22-redis-connection-pool-in-rails/ - Rails is multi-threaded, but can your redis connection handle it?
Catchup subscriptions with Rails Event Store
https://blog.arkency.com/catchup-subscriptions-with-rails-event-store/ - See how to implement catchup subscriptions with Rails Event Store.
Rails connections, pools and handlers
https://blog.arkency.com/rails-connections-pools-and-handlers/ - a blogpost explaining how these three relate to each other.
How to customize webpack in Rails apps
Configuring webpack is precisely the main job of Webpacker’s NPM package, @rails/webpacker. This post provides an overview of how to customize its default settings for your Rails application. https://rossta.net/blog/how-to-customize-webpack-for-rails-apps.html
Processing SEPA transactions with Ruby
Check out how to process SEPA transactions with Ruby using a few tools. [more inside]
Rails Puma on SSL for localhost!
Had trouble with the new Cookie policy update from Chrome? Or you just want to start coding under HTTPs, check out my post then :D [more inside]
It's Time to Visit Bridgetown
Bridgetown is a Webpack-aware, Ruby-powered static site generator for the modern Jamstack era. It began as a fork of Jekyll and is evolving into so much more! Read the kickoff announcement, browse the docs, and check out (or checkout?) the repo on GitHub. Contributors welcome!
It's Easy to Build: Custom docs project | Part 2 - HTML to MD
In this second part of the series - It’s Easy to Build: Custom docs project, we’ll learn how to convert our HTML code to an markdown text using Ruby. Link to Blog Post
Looking Inside a Ruby Gem
Have you ever wondered what a gem is? What’s inside a Ruby gem? In the Looking Inside a Ruby Gem article, I’d like to take you to the RubyGems factory to see where it all begins. We will first learn how to create a Ruby gem and then unpack it and look inside the internals.
Rails Performance: When is Caching the Right Choice?
We’ve all been there. You’re clicking around your Rails application, and it just isn’t as snappy as it used to be. You start searching for a quick-fix and find a lot of talk about caching. Take your existing app, add some caching, and voila, a performance boost with minimal code changes. However, it’s not this simple. Like most quick fixes, caching can have long-term costs. In this article, Jonathan Miles discusses what caching is and what can go wrong, as well as explains non-caching strategies you can use to speed up your Rails app. https://www.honeybadger.io/blog/rails-caching-alternatives/
Rails Syntax Highlighting for VSCode
For anyone that enjoys Syntax Support https://github.com/smridge/vscode_rails_syntax . Started a collection of known rails methods now identified in Visual Studio Code (VSCode) via extension install.
PaperTrail Gem Tutorial
I wrote a tutorial on how to revert and restore records using the PaperTrail Gem. [more inside]
ActiveRecord::Migration: terminology
In the context of a database, a migration refers to the action of manipulating records (update, insertion, deletion, etc..). [more inside]
Simple API for Ruby releases and branches info
Rubies.io is a simple and open source API written in Sinatra with a Redis backend to programmatically fetch info regarding Ruby versions, releases and branches. Need to know if 2.7.1 is still the last version? /api/2.7.1 is the answer. Wanna verify which branches are in security maintenance? /api/security. Check out Rubies.io.
Using multiple PostgreSQL databases in your Gitlab CI
I recently tested out running multiple databases, a feature that was introduced in Rails 6. This caused a bit of a problem in my Gitlab continuous integration set up. Here’s a short note on how I fixed it: https://rails.substack.com/p/using-multiple-postgresql-databases