Problem validating uniqueness

I have validates_uniqueness_of :name in my model which works fine when
creating a record but doesn’t work when I edit the record. In other
words it won’t let me create a record with the same name but I can go
in after and update the field without a problem. Why would this
happen? -Mike

nevermind, figured it out. peace -mike

The validation was working fine. The problem was that the logic in my
controller where I submitted the form to didn’t was flawed and so it
didn’t indicate there had been a problem saving it. -Mike