Rails now uses error_highlight to locate the columns where an error is present | Saeloun Blog
22-Sep-2022 856
Ruby 3.1 introduced a new feature called error_highlight which allows you to pinpoint the exact column where an error is present.Standard error messages in Rails show the row the error has occurred in. This is useful in most scenarios, however, for certain types of errors it can get less helpful.For example, consider a hash of hashes. If accessing a key that does not exist, it can often be difficult to pinpoint the location where the key was accessed incorrectly.
Rails now uses error_highlight to locate the columns where an error is present | Saeloun Blog #ruby #rubydeveloper #rubyonrails #Rails #error_highlight #locate #columns #where #error #present #Saeloun #blog #error_highlight https://rubyonrails.ba/link/rails-now-uses-error_highlight-to-locate-the-columns-where-an-error-is-present-saeloun-blog