-
Active_storage_validations
If you are using active_storage gem and you want to add simple validations for it, like presence or content_type you need to write a custom validation . -
Time extensions are an unsung hero of Active Support - Andy Croll
In Active Support‘s extensions to the core Ruby classes, some of the most useful and plentiful are related to Time.One of Rails’s founding uses was to . -
Piotr Murach - Writing a Ruby Gem Specification
I created my very first Ruby gem in 2009. Since then I have released many packages. It’s been a long ride. A lot of things have changed in a Ruby gem m. -
How to "bundle install" in deployment mode, using bundler in docker · HTTPX
I was recently setting up the deployment of a ruby service, in my employer’s production environment, which uses EKS on AWS and docker containers. This . -
Simple View Presenter Pattern in Rails without using Gems
What’s the size of user.rb file in your current project? The default Rails way model-view-controller architecture often leads to a bloated model layer.. -
Run multiple Rails apps with Puma-dev
Before joining 37signals I hadn't encountered Puma-dev. This post is a message to past-me who would have benefited from using it to develop a constella. -
Rails tricks you may not know
Sometimes it is usefull to have one action, but make it work with both get and post (or any other). For example, if you have a page where user can gene. -
TL;DR: Move CI/CD scripts into .automation
Today our /bin folder has become overwhelmed with different development tools and scripts.We put everything there: local automations, CI/CD helpers, PA.
-
GitHub - Shopify/pitchfork
pitchfork is a preforking HTTP server for Rack applications designed to minimize memory usage by maximizing Copy-on-Write performance.Like unicorn (whi. -
Export User Data As CSV and Send An Email with Ruby on Rails
Sometimes we need to export user data we have in our app to comply with GDPR. So here I will explain how to export user data as a CSV file and attach i.