Find_by_atttribute returning a recordset

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(

or would I have to use a different finder method.

Any help would be great,


On Fri, Oct 21, 2011 at 05:21:39AM +0900, Bhavesh S. wrote:


Posted via

Use ‘find_all_by_attribute()’.