search for: property_imag

Displaying 1 result from an estimated 1 matches for "property_imag".

Did you mean: property_image
2006 Aug 26
3
order of saving/validating
Hi guys, I''m trying to do some validation on an image upload. Basically I have a model, Property, which has_many :property_images. I need to check that one image has been uploaded at least and so it was suggested I checked the number of images uploaded - @property.property_images.count > 0. Makes sense. I''ve added a validation on my Property model, like - def validate errors.add_to_base "You...