# Validations fail but updates the model

**URL:** <https://www.ruby-forum.com/t/validations-fail-but-updates-the-model/147304>\
**Category:** Rails\
**Created:** [August 30, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/validations-fail-but-updates-the-model/147304 "2008-08-30T18:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e274bd/32.png) [@eyp](https://www.ruby-forum.com/u/eyp)\
**Post date:** [August 30, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/validations-fail-but-updates-the-model/147304/1 "2008-08-30T18:49:20Z")

</div>

Hello,

I’m using update\_attributes and some validations on update, although  
some of that validations fail (error messages are shown in the view),  
the model is modified on DB, but when I create the model at first time  
it works fine.

I’ve tried update\_attributes! instead of update\_attributes and it  
works fine too, it raises exception.
