foxnewsnetwork / American-Lit-315

1 stars 1 forks source link

Implement pictures model for coupons, ads, products #10

Closed foxnewsnetwork closed 12 years ago

foxnewsnetwork commented 12 years ago

Ads should have a series of related pictures and each picture should come with a bit of meta data detailing the picture. Implement possible multiple picture uploading for a single ad / coupon / product

id | product | ad_id | content | meta_data | name int | int | int | text | text | str

SpinnakerSix commented 12 years ago

I am going to try out the Paperclip gem for picture uploading.

https://github.com/thoughtbot/paperclip http://railscasts.com/episodes/134-paperclip

SpinnakerSix commented 12 years ago

paperclip gem uses public/system/* to store pictures. pictures are automatically managed and associated with the correct models and are resized for convenience.