Gonzalo GaldámezinUnagiSupercharging Ruby on Rails with Active Support Core ExtensionsIf you use Ruby on Rails, you’ve probably had that moment of surprise when you realize Rails already provides a method that does exactly…Aug 20Aug 20
Gonzalo GaldámezinUnagiRuby on Rails: Avoiding Cache Stampedes with race_condition_ttlToday we’re discussing Cache Stampedes in Ruby on Rails and how to prevent them using :race_condition_ttl.Jul 8Jul 8
Gonzalo GaldámezinUnagiA brief guide to belongs_to Helper Methods in Ruby on RailsBelongs_to introduces several helpful methods to manage associations in our Ruby on Rails models. Let's see them.Jul 5Jul 5
Gonzalo GaldámezinUnagiHTTP Basic Authentication in Ruby on Rails with authenticate_or_request_with_http_basicIn this article, we’ll explore a case where HTTP Basic Authentication could be useful and see how it works.Jul 51Jul 51
Gonzalo GaldámezinUnagiActive Record Validations in Ruby on Rails: grouping conditional validationsRuby on Rails includes a variety of built-in validation options. However, some advanced features, such as grouping conditional validations…Apr 18Apr 18
Gonzalo GaldámezinUnagiSay Goodbye to Complex Regex: Simplifying Email Validation in Ruby on RailsAvoid dealing with long and complex regular expressions to validate email addresses in your Ruby on Rails models. You can make your code…Apr 12Apr 12
Gonzalo GaldámezinUnagiTransforming URL Query Strings into Hashes: A Ruby on Rails GuideIn the world of Ruby on Rails, handling URL query strings becomes essential, particularly when building web applications that engage with…Mar 141Mar 141
Gonzalo GaldámezinUnagiOptimizing Ruby on Rails Applications with Counter CacheRuby on Rails offers a useful feature called Counter Cache that refers to a column in the database that keeps track of how many associated…Mar 11Mar 11
Gonzalo GaldámezinUnagiFrom Strings to Booleans: Meet ActiveSupport::StringInquirer in Ruby on RailsActiveSupport::StringInquirer is a cool class in Ruby on Rails that comes in handy to deal with strings as boolean-like objects. It's great…Feb 23Feb 23
Gonzalo GaldámezinUnagiEnhancing has_many Associations in Ruby on Rails: the Dependent OptionWhile Ruby on Rails comes with smart defaults that usually do the trick, there might be moments when you feel like customizing how the…Feb 161Feb 161