Tutorials

Markdown Tutorial Using Redcarpet and Coedray Gems
We have seen many blogs having markdown support. We can add links, images, videos, and gifs to any article having markdown support. Thinking about content without worrying about the blog’s presentation makes it easy for bloggers to make great cont...

Better Ruby Gemfile security: A step-by-step guide using Snyk | Snyk
Ruby is a well-defined and thought-out language and has been around since the mid-1990s. In 2004, Ruby incorporated RubyGems as its package manager. RubyGems is used to manage libraries and dependencies in a self-contained format known as a gem. T...

Submitting many ActionMail jobs at once with Sidekiq
I recently came across a situation where enqueueing several thousand mails from a Rails app to Sidekiq was surprisingly slow and the fix surprisingly complex, so I decided to write a blog post about it both for myself (if I need this again) and ot...

Notes on retrying all jobs with ActiveJob retry_on
Many people use backend-specific logic for retries, especially with Sidekiq. That’s fine!I like the idea of using the ActiveJob functionality:I currently use resque (more on challenges with retry here later), but plan to switch to something else a...

API Wrapper gems in Ruby - Part 1: Creating a gem and HTTP requests with Faraday - YouTube
► Check out https://gorails.com for Pro episodes and more!► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: https://jumpstartrails.com► Ruby on Rails hosting with Hatchbox.io: https://hatchbox.i...


asdf and Docker for Managing Local Development Dependencies
Have you ever updated a database for one project just to discover that you accidentally broke another? Ensuring the isolation between your local dependencies can save you hours of rolling back a breaking update or resolving intertwined dependencie...

One row, many threads: How to avoid database duplicates in Rails applications
Making sure each database row is unique, and tables contain no duplicates seems like a straightforward task in Rails. Active Record has a built-in validator that you can put on a model and call it a day. Until your application encounters high load...
