最佳答案
I've noticed that the Model.where method always returns an array even if there is only one result where as the Model.find method doesn't. Is there any reason for this? I thought Model.where was the preferred function since Rails 3.X.
Should I be using Model.find when I expect a single result and Model.where when I expect more than one result?