How to validate with validates_associated

Is any one have idea !

Please refrain from bumping so often, at the very best, it will annoy people who would be willing to help you...


Sorry , for that but i am seeking for help regarding

I haven't used validates_associated before, but if you read the
documentation (, it says the following:

NOTE: This validation will not fail if the association hasn‘t been
assigned. If you want to ensure that the association is both present
and guaranteed to be valid, you also need to use

Are you sure a bannerimage has been assigned to your banner object?

On Jul 9, 8:59 pm, Ruby on Rails <>