Musings of a startup junkie and Ruby on Rails nerd.
Welcome to Millarian! I write about web development, Ruby on Rails, consulting, and the occasional startup lesson learned the hard way.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.