[Sdruby] finding within a find
Javan Makhmali
javan at javan.us
Thu Apr 12 03:17:45 GMT 2007
I have a page with several blurbs of text that appear in various
places like the footer and sidebar. I'd like to be able to query all
of the blurbs at once ( @blurbs = Blurb.find :all ) and then pick
from that collection and display in the view. Each blurb has a
permanent non-changing name attribute, but I'm not sure how to grab
just that one blurb from @blurbs using this attribute.
Javan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2411 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/sdruby/attachments/20070412/f753d9da/smime.bin
More information about the Sdruby
mailing list