News
What level of test coverage should I shoot for? - Code with Jason
“What level of test coverage should I shoot for?” is one of the questions most commonly asked by beginners to Rails testing.My answer is that you shouldn’t shoot for a particular level of test coverage. I recommend that instead you make testing a ...
Rails 7 allows setting timestamps on insert_all/upsert_all record creation | Saeloun Blog
ActiveRecord is one of the most useful utilities in the Rails toolkit. It allows us to perform complex database queries while abstracting the adapter, essentially making a database “pluggable”.However, some edge cases stand out like a sore thumb. ...
Single attribute in-place editing with Rails and Turbo
Turbo can largely simplify our front-end needs to achieve a single-page application feel. If you have ever wondered how to do a single attribute in-place update with Turbo, this post is for you.I’ll assume you have Turbo (with turbo-rails gem) ins...
How a routine gem update ended up creating $73k worth of subscriptions
On November 5, 2021 (a Friday of course), we've deployed innocent-looking gem updates. Minor versions of Ruby on Rails, Ruby Sentry client, Ruby Slack client, http libraries, Puma, Devise, OmniAuth Ruby client, Mongoid, and a few test gems.However...