Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The "new" Attributes API in Rails 5

The "new" Attributes API in Rails 5

One of my favorite new features in Rails 5 is the Attributes API. Well, it's not really "new" in that it kind of existed in 4.2, but it's mature and public now! In this talk we'll go over some of the basics around how this new feature of ActiveRecord works, when you might want to use it, and some of the potential issues with integrating this into existing applications.

Devon Estes

July 05, 2016
Tweet

More Decks by Devon Estes

Other Decks in Programming

Transcript

  1. Why use the Attributes API? •  Easier to use Value

    Objects •  Easier to use Null Objects •  If you don’t have complete control over your database schema or using third party data •  Other things I haven’t thought of yet!