Gotchas

Surprising behavior in Rails, Ruby, and the gems around them -- what breaks, why, and how to work around it.

Supabase RPC Silently Capped at 1000 Rows (PostgREST)

PostgREST's max_rows cut my RPC result off at 1,000 rows with no error. Returning one row per group fixed it.

gotchas postgres supabase

Expo Android Status Bar Icons Invisible in Light Mode

White status bar icons on a white background? Render expo-status-bar once in the root layout.

gotchas react-native android

Rails titleize Breaks Names, Hyphens, and Apostrophes

titleize splits McAllen, drops hyphens, skips capitals after apostrophes, and chops ALL-CAPS words around acronyms. Here's a safer way to recase text.

rails ruby gotchas

EncryptedConfiguration#key? Missing Before Rails 7.1

delegate_missing_to turns a missing predicate into a confusing ArgumentError, not a NoMethodError.

rails ruby gotchas

Requiring an ActiveSupport Leaf File Breaks on Rails 7.1

require 'active_support/x' alone raises a deprecator NoMethodError unless the parent library loads first.

rails ruby gotchas