RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Better File Uploads with Shrine: Eager Processing

Shrine’s “eager processing” feature allows us to generate and store a set of processed files (e.g. image thumbnails) derived from the attached file. In this article we’ll show how this feature is designed, how does it stand out from alternatives (Paperclip, CarrierWave), and some neat use cases it enables.

Sidekiq::Undertaker

Sidekiq::Undertaker is a plugin for Sidekiq. It allows exploring, reviving (retrying) or burying (deleting) dead jobs. For easy exploring the dead-jobs queue is broken down into time windows (buckets) of hours, days and weeks. [more inside]

Working Around ActiveRecord Callbacks

I just published an article over on my company’s site called Working Around ActiveRecord Callbacks. In it I talk a little bit about the issues with ActiveRecord callbacks and how they don’t scale well once your app grows beyond being a “simple CRUD app”. I got on to explain a useful technique for working around troublesome callbacks when you don’t have the resources to refactor them out into service classes or some other pattern.

Loading older posts