All the different ways to set attributes with Active Record on Rails 6
I put together a handy guide comparing all the different ways you can set attributes on an Active Record object in Rails 6. At a glance the cheat sheet shows you which methods save to the database, run validations, run callbacks, update timestamps, etc.
Post a comment