Gallery and Photos for Property.
Should include upload logic using some nice gem for the job, likely using AWS or other cheap binary file storage cloud service.
Uses photos
gem for general purpose photo functionality, integrating with and using CarrierWave and Mongoid.
class Property
include Mongoid::Document
include_concerns :photos
end
Property::Gallery
should embed many Property::Photo
, not Property::Picture
, which is just for simple test purposes!
pictures - collection of Picture
An invididual picture, hosted in a cloud service
- name
- size
- type
Wrapper for use with Rails gallery gem for easy Gallery display.
Todo...