Greg (@GregThatIsAll) profile picture

Father, Husband, Sports Enthusiast, KU Fan, Rubyist, Entrepreneur, Golfer

Kansas City, MO
Joined May 2009
🆔 UUIDv7 primary keys give Rails applications the benefits of UUIDs without the indexing headaches of UUIDv4. PostgreSQL 18 generates them natively, although getting Rails to play nicely with them requires a little extra work. randomerrata.com/articles/20…
3
7
41
2,375
🔐 The Rails Security Guide has been substantially rewritten for the Rails 8 era. Well worth revisiting even if you've been developing Rails applications for years, particularly as the framework's built-in security features have evolved. edgeguides.rubyonrails.org/s…
35
1
193
11,946
🔒 A malicious gem pulled from RubyGems on November 1st contained a worm designed to steal credentials and spread through AI coding tools. No known victims, but an interesting case study in modern supply-chain attacks. socket.dev/blog/shai-hulud-d…
2
9
36
4,186
Introducing: stylebench for Ruby! Compare how different models, thinking levels, and simple prompt modifications change how models solve simple Ruby problems. Which style do you prefer the best? A completely vibes-based, no pass/fail eval! nateberkopec.github.io/style…
8
10
1
113
6,381
Need the records that don't have an association? where.missing(:posts) writes the LEFT OUTER JOIN and IS NULL check for you. where.associated is the opposite. Both take several associations at once.
2
4
1
38
1,686
Hey everyone, Ruby 4.0.10 is out! It contains a critical security fix. Update immediately! ruby-lang.org/en/news/2026/1…
12
181
11
511
57,768
A milestone worth celebrating: In the last month, Rails quietly passed 100,000 commits (and counting*)! That's over 100,000 big ideas, small fixes, and countless improvements. And behind every commit is someone who helped make Rails what it is today. No matter how big or small your PR, if you've contributed to Rails, thank you! (*101,179 as of today.)
8
65
7
424
15,227
Still lowercasing emails in a before_validation? normalizes cleans the value when it's assigned. Finders run the same normalization, so find_by with an uppercase, space-padded email still finds the user. No extra code.
4
7
1
61
2,776
Need records in a custom order, like draft, then review, then published? in_order_of writes the CASE statement for you. It filters out other values by default. Rails 8.0 added filter: false to keep them at the end.
1
4
51
1,877
RubyLLM 2.2 is out! Released it on stage at @sfrubyconf Coding sandboxes with my new mxc gem. Skills support with my new skill gem. In memory, disk, and Active Storage file stores. Tools can ask a person and wait. Chats survive a deploy. Tests without a provider, 23 providers. All optimized for coding agents. The release I'm proudest of. paolino.me/rubyllm-2-2/
7
13
3
88
3,335
db:migrate or db:prepare? db:prepare creates a missing database, loads the schema and seeds a new one, and only migrates an existing one. It covers every database in database.yml, Solid Cache, Queue and Cable included. That's why the Docker entrypoint runs it on every boot.
3
3
49
1,753
Rails 8.0 lets you stack rate limits on one action. Give each a name: and they're counted separately. A short window stops bursts. A long one stops slow, steady password guessing that stays under the short limit.
4
6
1
92
4,142
update_columns skips validations and callbacks, and it used to leave updated_at stale too. That breaks cache keys built from it. Rails 8.1 adds touch: true, so you still skip the callbacks but get fresh timestamps.
1
2
46
1,621
🔍 rails-preflight is a new tool for checking Rails applications before an upgrade. It identifies incompatible gems, removed APIs, Ruby requirements, and potential blockers. The results are presented in a report with a step-by-step upgrade path. #Rails syedaslam.com/posts/a-prefli…
5
24
1,625
🚀 Shopify is now running Ruby’s ZJIT compiler in production. Early results suggest it matches or beats YJIT on response times while using around 20% less JIT memory. #Ruby railsatscale.com/2026-10-09-…
9
67
2,377
Greg retweeted
We released Ruby 4.0.9, 3.4.12, and 3.3.13, and published an announcement about Regexp compilation fixes. ruby-lang.org/en/news/2026/1… If your application compiles a regular expression from an untrusted string, please update your Ruby to one of those versions.
8
156
37
352
112,926
Security called me at 6:12 AM today. "Patch every PHP server immediately." I asked what happened. "Two critical vulnerabilities. Remote code execution. No authentication required." Cool. How many PHP servers do we have? According to inventory: 12 According to reality: Nobody knows. We found one running WordPress. Three running old internal tools. One under someone's desk. Two inside vendor appliances. A forgotten employee directory from 2016. And a server named: PHP-OLD-DO-NOT-TOUCH Naturally, that one runs payroll exports. Then we found a PHP 5.6 box. I asked who owned it. The documentation said: BRIAN. Brian left in 2019. We called Brian. He said: "Oh wow, that's still running?" Excellent. By 8 AM, leadership joined the incident call. CEO: "Can hackers actually get in?" Security: "Potentially yes." CEO: "Without a password?" Security: "Yes." CEO: "Then why do WE need passwords?" Not the lesson. Finance asked if we could wait until the weekend to patch because downtime affects revenue. Security explained that the alternative was letting strangers execute code on our servers. Finance asked for a cost comparison. At 9:17, someone suggested temporarily taking the vulnerable websites offline. Marketing refused. "Our campaign is live." So for the next hour, the company officially decided maintaining a landing page for 20% off webinar registration was more important than preventing remote server takeover. We finally patched everything we could find. Then our scanner discovered another PHP server. Hostname: TEMP-PHP-2014 Uptime: 4,512 days. Nobody knows what it does. Nobody owns it. Nobody can shut it down. But every time we block network access, the warehouse stops printing shipping labels. Security has classified it as critical infrastructure. It is running PHP 5.4. The vulnerability has existed longer than half our employees. The emergency patch took four hours. Finding out what PHP actually runs took eleven. The internet isn't held together with code. It's held together with servers everyone is afraid to turn off.
911
7,044
1,159
57,782
3,864,027
Deploys restart your job workers. In Rails 8.1, a long job doesn't have to start over. Include ActiveJob::Continuable, split the work into steps, and save a cursor as you go. When the job restarts, finished steps are skipped and the current one picks up from its cursor.
6
9
3
99
6,622
Just released Prism v2.0.0. For the first time ever, Prism has no open issues, PRs, discussions, or redmine tickets. A couple of highlights below.
2
10
68
2,892