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