# HABTM Validation

**URL:** <https://www.ruby-forum.com/t/habtm-validation/153595>\
**Category:** Rails\
**Created:** [November 19, 2008, 6:29am UTC](https://www.ruby-forum.com/t/habtm-validation/153595 "2008-11-19T06:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@shiva](https://www.ruby-forum.com/u/shiva)\
**Post date:** [November 19, 2008, 6:29am UTC](https://www.ruby-forum.com/t/habtm-validation/153595/1 "2008-11-19T06:29:42Z")

</div>

Hi  
I have a many-to-many relationship between users and groups  
set up in my application, using a join table (users\_groups).  
i have wrote validation in both a table,

at the time of showing error message  
its add one extra validation message  
as “Groups is invalid”

how to avoid this message

with regards  
shiva
