March 2026
March 11, 2026
🔗 with_options is some nice syntax sugar in Rails (#). When a series of validations (in an ActiveRecord model) all share the same conditional or when a series of before_actions (in a controller) do, with_options is a nice grouping.