From: Pieter Mans Date: 2006-12-18T13:16:17+09:00 Subject: Re: Finding an object in a collection Daniel ----- wrote: > On 12/18/06, Pieter Mans wrote: >> >> How would I go about finding an object in a collection? Specifically: >> >> I have a collection called roles. I have a Role object with the name >> property "user". How do I find that object in roles? >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> I believe you can use dynamic finders on AR collections. > > @roles_collection.find_by_name( "user" ) This worked great, thanks! -- Posted via http://www.ruby-forum.com/.