ActiveRecord's New Takes a Block, Kid
If we want to make a new instance of an ActiveRecord model with particular attributes, we have a number of options.We can pass the attributes in as a hash:.
ActiveRecord's New Takes a Block, Kid #ruby #rubydeveloper #rubyonrails #activerecord's https://rubyonrails.ba/single/activerecord-s-new-takes-a-block-kid