RangeError: Beginless Range from a Missing Rails Param

A missing param turns params[:start]..params[:end] into a beginless range. ActiveRecord accepts it, but Range#first raises.

rails ruby gotchas

Turbo 8 Prefetch Breaks turbo_frame_request? Layouts

Turbo 8 link prefetch can hand a frame the response meant for the full page. Why turbo_frame_request? branching fails, and how to fix it.

rails gotchas javascript

Security Audits in CI With a Dependency Cooldown

A plain audit fails CI the day an advisory lands, even when the fix is too new for your cooldown. Here's an audit script that only fails on fixes you can adopt.

security ruby how-to

Brakeman --ensure-latest Fails CI With a Cooldown

Brakeman's --ensure-latest check exits 5 the day a new release ships. Here's a bin/brakeman that only demands versions older than 14 days.

rails security gotchas

Guarding noticed Deliveries Against Deleted Records

When a Booking disappears between enqueue and delivery, noticed's async jobs crash on nil.starts_at. Here's the guard and the test pattern to match.

rails debugging testing gotchas

WKWebView Blank in a Sandboxed Mac App

A sandboxed macOS app showing a blank WKWebView on launch? loadFileURL needs the network.client entitlement, even if nothing touches the network.

gotchas macos safari

Postgres SET Clause Stops SQL Function Inlining

A SET search_path line on a SQL function stopped Postgres from inlining it, and a fast search turned into a sequential scan.

postgres performance gotchas

Rails Spec Fails Only on Sundays: beginning_of_week

A spec can pass six days a week and fail on Sundays when a factory uses 1.week.from_now.beginning_of_week.

rails testing gotchas

Supabase OTP-Only Apps Still Allow Password Sign Up

An app with no password screen can still be hit by a pre-account takeover through Supabase's /auth/v1/signup endpoint.

supabase postgres gotchas security

Supabase Edge Functions Skip Your Package Cooldown

Deno resolves version ranges at deploy time with no lockfile. Pin exact versions in your imports and check their publish dates.

security supabase