Tutorials
Understanding Factory Bot syntax by coding your own Factory Bot - Code with Jason
When you look at a Factory Bot factory definition, the syntax might look somewhat mysterious. Here’s an example of such a factory.FactoryBot.define do factory :user do first_name { "John" } last_name { "Smith" } endendThe goal of this tuto...
Using Redis Hashes for Caching in Ruby on Rails | Mrsool
Note: We created a Ruby gem to easily share the lessons we’ve learned in this article.We’ve been using Redis with Ruby on Rails’s caching methods for a couple of years at Mrsool and it’s been a great experience. We have particularly been using a f...
Rails 7 adds AudioAnalyzer to ActiveStorage | Saeloun Blog
In our Rails application, we come across a lot of cases where we need to deal with images, videos, and audio. With the support of ActiveStorage which was released in Rails 5.2 it became easy for developers to upload media to Rails application.But ...
Semantic Logger for Ruby or Rails. Supports Graylog, Bugsnag, MongoDB, Splunk, Syslog, NewRelic.
Semantic Logger is a comprehensive logging interface that enables human and machine readable logging outputs.Colorful text log files for humans to read.JSON log files containing all Semantic information that machines can easily comsume.Write to mu...
How to auto-document the end-to-end code and data flows of your Rails app
In case you missed it, I’m recapping my recent RailsConf 2021 talk in a series of four, short blog posts. Check out Part 1 - We need a better way to communicate and explain our code decisions.This post recaps the first of the demos I gave as part ...
Visualize the architecture of your Ruby app in RubyMine, in 2 ¹/₂ minutes
AppMap is an open source RubyMine plugin which helps you improve your code by showing you how it behaves, feature by feature, as you work. It does this by automatically generating interactive maps of architecture and code behavior right in your ed...