Today I Learned

hashrocket A Hashrocket project

Rails 6.1 Deprecates update_attributes

In Rails 6.1, the update_attributes method will no longer work. The straightforward fix is the change the method call to update instead. Turns out update_attributes has been an alias for update for years now, and this deprecation finally makes it official.

Hat Tip to: https://rubyinrails.com/2019/04/09/rails-6-1-activerecord-deprecates-update-attributes-methods/

See More #rails TILs
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.