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.
In-App Payments Backend with Roda
This tutorial shows how to use Roda as the backend to take mobile payments with Square:
Example Gitlab Pipeline Configuration for Rails Projects
Gitlab Pipeline for Rails can be a useful alternative for other applications like Jenkins and TeamCity. Want to learn how it works? See an example configuration.
Rails Request Lifecycle | Gryffondor.in
Do you know how request is processed in its lifecycle from browser to web server to again browser. What happens with request at each stage? Who handles request at what level? Let’s find out. [more inside]
Managing old migrations with Squasher
Rails have a gem to merge old lengthy migrations into single migration, called squasher. Let’s see by example.
Integrating Bootstrap 4 into Rails 6…and how to use a theme
An article to explain how to Install Bootstrap 4 and a Bootstrap theme [more inside]
Autoscaling Sidekiq on Heroku
Heroku add-on Rails Autoscale now supports autoscaling worker dynos. Check out the launch announcement and video to see how it works and how to set it up.
A weird Capybara error in `within` block
Some time ago, a weird Capybara error emerged while fixing the Solidus eCommerce codebase. [more inside]
How to Backup Heroku PostgreSQL Database to an Encrypted AWS S3 Bucket
Heroku offers a robust backups system for it’s PostgreSQL database plugin. Unfortunately, you can irreversibly lose all your data and backups just by typing a single command. It might seem improbable, but still, I would rather not bet my startup’s existence on a single faulty bash line. In this tutorial, I will describe how to set up a proprietary Heroku PostgreSQL backups system to a secure AWS S3 bucket. [more inside]
Troubleshooting Common Ruby on Rails Errors in Production
Explores common issues that new Rails developers might face when deploying and running their apps in production, that result in server errors, missing resources, and even timeouts. [more inside]
New features introduced in Ruby 2.7
Here I have published a new article regarding Ruby 2.7 new features! [more inside]
Announcing Square's New Ruby SDK
Square’s new gem lets you take payments or integrate with Square APIs for running a business:
Testing ActionText without JavaScript
I tend to try and avoid JS in my applications unless I really need it. [more inside]
Finding the most recent by group in Rails
A certain kind of question comes up sometimes when building an application with a relational database: What is the most recent item for each category? [more inside]
ActiveRecord Connection Errors on Heroku - How to Reproduce and Resolve
If you use Rails and Sidekiq on Heroku (or elsewhere), you’ve probably run into ActiveRecord::ConnectionTimeoutError or PG::ConnectionBad a time or two. This video shows you why they happen and how to resolve them.
Sorbetting a gem, or the story of the first adoption
This post describes the process of integrating Sorbet into a gem with all the caveats/pitfalls I’ve encountered along the way.
How to Implement Elasticsearch When Developing a Rails Web App
How to integrate Elasticsearch in a Rails web app in 5 steps: