I noticed that the Model.where method always returns an array, even if there is only one result when the Model.find method Model.find not work. Is there a reason for this? I thought Model.where was the preferred feature since Rails 3.X.
Should I use Model.find when I expect one result and Model.where when I expect more than one result?
ruby-on-rails ruby-on-rails-3
AdamB Mar 05 2018-12-12T00: 00Z
source share