[Nitro] Accessing a database column with two different names

Alexandre Gravem vikingtux at gmail.com
Wed Oct 25 17:47:58 EDT 2006


>
> @myfiles = StorageFile.find do |file|
>      file.owner == some_storageuser.oid
> end
>


I think you should use file.owner == some_storageuser or file.owner_oid ==
some_storageuser.oid ... but it's odd to compare an object (owner) with a
field (oid).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20061025/fcc9b3bb/attachment.html 


More information about the Nitro-general mailing list