Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

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:

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.