From: Lake Denman Date: 2011-10-21T05:52:52+09:00 Subject: Re: find_by_atttribute returning a recordset On Fri, Oct 21, 2011 at 05:21:39AM +0900, Bhavesh Sharma wrote: > Is it possible to retrieve more than one result with find_by_attribute > in ActiveRecord. > > If yes, how would I parse through it? > for example > custom_fields = CustomField.find_by_MerchantId(merchant.id) > > or would I have to use a different finder method. > > Any help would be great, > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > Use 'find_all_by_attribute()'. Lake