# Update attribute without validations or any save hooks?

**URL:** <https://www.ruby-forum.com/t/update-attribute-without-validations-or-any-save-hooks/65022>\
**Category:** Rails\
**Created:** [August 15, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/update-attribute-without-validations-or-any-save-hooks/65022 "2006-08-15T18:52:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [August 15, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/update-attribute-without-validations-or-any-save-hooks/65022/1 "2006-08-15T18:52:55Z")

</div>

If I wanted to update an attribute with calling any validation or any of  
the before\_save and after\_save hooks, how would I go about doing this?

Supposed the update\_attribute method calls the before and after save  
methods.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [August 15, 2006, 7:19pm UTC](https://www.ruby-forum.com/t/update-attribute-without-validations-or-any-save-hooks/65022/2 "2006-08-15T19:19:16Z")

</div>

Ben J. wrote:

> If I wanted to update an attribute with calling any validation or any of  
> the before\_save and after\_save hooks, how would I go about doing this?
> 
> Supposed the update\_attribute method calls the before and after save  
> methods.
> 
> Thanks for your help.

I am not sure about skipping before and after save methods, but you can  
skip validation by passing true to the save method

@foo.save(true) #skips validations
