Different Ways to Set Attributes in ActiveRecord (Rails 4)
- Different Ways to Set Attribute...
Link seems okay. Redirecting to https://davidverhasselt.com/set-attribute.. after 60 seconds, or go to link now
Rails 4 allows the developer to change ActiveRecord attributes in various ways. Each one does it slightly differently with sometimes unique side-effects. It’s important you understand which method to use, so here’s a cheat sheet with in-depth information below.