Tutorials
How to test Ruby output and logs using RSpec with StringIO
Testing what is logged when you application is run can be done with testing method calls to your logger. However, using StringIO to capture and examine its output can provide several advantages, such as being able to record output and perform test...
Ruby on Rails Callbacks - DRY out your models using Concerns
When writing an extension for a Ruby on Rails model, an ActiveSupport Concern could be a good choice. They work like mixin modules that can be included in a class, but have some extra benefits for Rails models, such as the ability to add Callbacks...
Uploading images from Rails to DigitalOcean Spaces, with previewing
So I wanted to make my site a little bit more friendly looking, and using profile pictures seemed like a good idea. In my case, users can upload projects, which other people can join. There are no user accounts, every user is visiting as a guest, ...
Framework for Apache Kafka based Ruby and Rails applications development.
Karafka allows you to capture everything that happens in your systems in large scale, providing you with a seamless and stable core for consuming and processing this data, without having to focus on things that are not your business domain.Karafka...
Building auto login for fast Rails development with Sorcery
Login as various users during development can become pretty annoying especially since it’s very difficult to remember all of the passwords across users or apps. If your app authentication happen to be built with Sorcery here’s is a very easy and s...
This Sail engine brings in a setting model and dashboard to control the behavior of Rails applications live
This Rails engine brings a setting model into your app to be used as feature flags, gauges, knobs and other live controls you may need.It saves configurations to the database so that it can be changed while the application is running, without requ...