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(merchant.id)

or would I have to use a different finder method.

Any help would be great,

Thanks

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

Thanks


Posted via http://www.ruby-forum.com/.

Use ‘find_all_by_attribute()’.

Lake

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs