I have a User Model and have a Image model with carrierwave.
I want to limit the amount of images an user could upload because I have a second form where the user goes to upload de images and I want him to able to upload only 3 images. Is there an elegante solution for this? Or do I have to make a custom validator that counts the amount of images the user as?
I guess your model is somehow similar to that :
So that means you could simply add a validation on the user on how many photos it can have. You can see that post : Limit number of objects in has_many association
You would end up with something like that in your photo model :