Home Add image to different model using CarrierWave
Reply: 0

Add image to different model using CarrierWave

user3802
1#
user3802 Published in September 19, 2018, 3:19 am

I use CarrierWave to upload user's pictures. my PictureUploader class have 3 version (large, small, thumb).

Now i want to add an article model then make possibility to add an image to article.

my question is :

what is the best way : create a new uploader for articles ? or just use the existing picture uploader ? if so how to add conditions to say for example : large, small and thumb are just for user model, and "other_version" is for article model

share|improve this question

1 Answer 1

active oldest votes
up vote 1 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.329856 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO