From: Daniel N Date: 2006-12-18T11:55:50+09:00 Subject: Re: Finding an object in a collection ------=_Part_7625_3219745.1166410546650 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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" ) ------=_Part_7625_3219745.1166410546650--