When you try calling stringify_values on a Ruby Hash
Ruby dev moment: I tried to convert hash values with map(&:to_s), broke my CI, and discovered a cleaner, more Ruby-like way to do it.
Ruby dev moment: I tried to convert hash values with map(&:to_s), broke my CI, and discovered a cleaner, more Ruby-like way to do it.
Using FontAwesome with Rails was really easy with font-awesome-rails gem. It also had really nice helpers. Thing is this gem depends on Sprokets. I wanted to try the shiny but very light Propshaft ...
Few days ago I stummbled upon a cool helper method in Rails called config_for. It's super useful to read any YAML based config files with ease. Let me show you.
Developing email templates and sending a new mail every time to view a change is very inefficient and painful. Rails comes in rescue again. With mailer preview, you can view the changes in your bro...
I was impatient to hard code different env values in configuration files like NginX, Monit conf. So, the birth of Capistrano ERB Uploader.
Maybe you need your multi tenant application database to partition horizontally (shard). Probably you want to store different customers data in different tables.