Creating a gallery in Rails
- by raphael_turtle
I'm creating a simple site with a gallery. I have a photos model which has a page for each photo with it's info and an image.
I'm unsure how to create a gallery from the photo's.
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 photo's 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.)