Using a database record as a Find condition

the batman
Thu, 01 Jul 2010 15:28:32 -0000

I have a photos model which has a field for a gallery title, I have a
gallery controller which currently shows all photos that don''t have an
empty gallery title field.

I want to have on my gallery page a photo from each gallery that has a
unique title, which would link to ''gallery/gallery-title'', a
page for
gallery.
(ie say I set one gallery title to 2009 and another to 2010 then I''d
have 2 seperate galleries)

I''ve been reading/searching but I don''t know how to implement
this.
How do I use the gallery titles to find and sort the photos??
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at