I'm creating a simple site with a gallery. I have a photos model which has a page for each photo with its info and an image. I'm unsure how to create a gallery from the photos.
The gallery model has_many photos, the photos model has_and_belongs_to_many galleries. I thought of adding a gallery.title field on each photo page so I'd have a list of photos for each gallery then display them in a view. Is this a good way to make a gallery?
(I've looked through the code on some gallery apps on Github, but most are outdated are too complicated for my needs.)