Rails 7.1 Now Allows ErrorReporter To Handle Several Error ClassesRails introduces handle method for ErrorReporter API
Rails 7.1 now allows matching exception messages to assert_raises assertion.Check the exception and the message raised by rails or custom errors in tests together with assert_raises in a single line.
Using quarter method by railsGet quarter of the date provided for the current year or the custom year.
Adding table names to error for duplicate column namesTable name is shown in the error when duplicate columns for the same table is entered while creating it.
Restoring data using papertrail.PaperTrail is a very useful tool, but did you know it can help restore the deleted records as well?