# Save and save! fail but no errors are created

**URL:** <https://www.ruby-forum.com/t/save-and-save-fail-but-no-errors-are-created/50327>\
**Category:** Rails\
**Created:** [December 15, 2005, 8:53am UTC](https://www.ruby-forum.com/t/save-and-save-fail-but-no-errors-are-created/50327 "2005-12-15T08:53:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@rue](https://www.ruby-forum.com/u/rue)\
**Post date:** [December 15, 2005, 8:53am UTC](https://www.ruby-forum.com/t/save-and-save-fail-but-no-errors-are-created/50327/1 "2005-12-15T08:53:01Z")

</div>

Hi

I will provide code if needed but I am wondering  
if there might be a standard cause for this: a  
Model I am trying to save seems to fail miserably  
at either a #save or #save! call. In the latter  
case, a RecordInvalid is raised, but when I inspect  
it, the Errors object does not contain any error  
messages (full or otherwise). I have tried many  
a way but I can not seem to get any error info.

Are there any known scenarios where this would  
happen? Troubleshooting is a bit tricky when  
there are no errors 😕

actionmailer 1.1.5  
actionpack 1.11.2  
actionwebservice 1.0.0  
activerecord 1.13.2  
activesupport 1.2.5  
rails 1.0.0

E

---

<div class="post-metadata">

**Author:** ![rue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@rue](https://www.ruby-forum.com/u/rue)\
**Post date:** [December 15, 2005, 8:58am UTC](https://www.ruby-forum.com/t/save-and-save-fail-but-no-errors-are-created/50327/2 "2005-12-15T08:58:42Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

On Dec 14, 2005, at 11:53 PM, Eero S. wrote:

> happen? Troubleshooting is a bit tricky when  
> there are no errors 😕

Perhaps you have a before\_save callback returning false and therefore  
aborting the save.

jeremy

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDoSGuAQHALep9HFYRAj7eAKCCM7RN7eOiVapi4sgcJr4Iu8PzbgCguS7w  
pXEMVAq0+CIcN/myQ2XHnaY=  
=HZ8n  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![rue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@rue](https://www.ruby-forum.com/u/rue)\
**Post date:** [December 15, 2005, 9:26am UTC](https://www.ruby-forum.com/t/save-and-save-fail-but-no-errors-are-created/50327/3 "2005-12-15T09:26:51Z")

</div>

Jeremy K. wrote:

> On Dec 14, 2005, at 11:53 PM, Eero S. wrote:
> 
> > happen? Troubleshooting is a bit tricky when  
> > there are no errors 😕
> 
> Perhaps you have a before\_save callback returning false and therefore  
> aborting the save.

That is precisely what was happening! Shame on me  
for not reading the small print. In hindsight it  
seems even quite logical.

Perhaps it would be possible for the framework to  
generate an error message saying “foo\_method failed,  
validations cancelled”?

Thanks!

> jeremy

E
