-
A gem to spy queries running with Active Record and report missing indexes
Imagine you have an application running in production and after a deploy, it starts to slow down.After a perhaps exhaustive debugging session, you may .
-
Form objects decoupled from models.
Form objects decoupled from your models.Reform gives you a form object with validations and nested setup of models. It is completely framework-agnostic.
-
Geospatial data library for Ruby
RGeo is a key component for writing location-aware applications in the Ruby programming language. At its core is an implementation of the industry stan.
-
Rails 7 adds invert_where method to ActiveRecord | Saeloun Blog
We often come across cases in our Rails application where we want to negate our where clause conditions.Let’s say we have a system that requires users .
-
Rails 7 enables scoping to apply to all queries | Saeloun Blog
Rails 7 adds ability to pass all_queries: true option to the ActiveRecord ...
-
RUBY 494: Reducing Friction at the Authorization Layer with John Nunemaker | Devchat.tv
Dave Kimura, Luke Stutters, and John Epperson talk with John Nunemaker about Rails Authorization. John dives into the Pundit and how he had created a w.
-
How and when to use Ruby case statements
Using the case expression in Ruby is a great way to write conditionals in a clear, and succinct way. Despite that, it’s not hard to encounter convolute.
-
Listing the contents of a remote ZIP archive, without downloading the entire file – Zoned Out
Why I needed to do this is a longer story, but this was a question I was looking for an answer to.Initially it led me to the following SO question:Is i.
-
Efficient Search in Rails with Postgres · pganalyze
Speed up a search query from seconds to milliseconds and learn about exact matches, similarity matches with trigrams, partial matches with ILIKE, and n.
-
ELI5: Bitfields
An array of true/false values. Usually a fixed-size array, due to platform constraints. Also a very compact array – taking exactly one bit to store eac.