# Ar save! bug?

**URL:** <https://www.ruby-forum.com/t/ar-save-bug/109167>\
**Category:** Rails\
**Created:** [July 12, 2007, 2:31am UTC](https://www.ruby-forum.com/t/ar-save-bug/109167 "2007-07-12T02:31:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [July 12, 2007, 2:31am UTC](https://www.ruby-forum.com/t/ar-save-bug/109167/1 "2007-07-12T02:31:04Z")

</div>

any ideas how this ever could be possible:

@model.save!  
@model.update

Model.find @model.id # raises

??

## -a

we can deny everything, except that we have the possibility of being  
better. simply reflect on that.  
h.h. the 14th dalai lama

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [July 12, 2007, 2:41am UTC](https://www.ruby-forum.com/t/ar-save-bug/109167/2 "2007-07-12T02:41:05Z")

</div>

On 11-Jul-07, at 8:29 PM, ara.t.howard wrote:

> ??
> 
> -a

Is it possible that its the .save! that’s raising?

Jodi

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [July 12, 2007, 4:35am UTC](https://www.ruby-forum.com/t/ar-save-bug/109167/3 "2007-07-12T04:35:13Z")

</div>

On Jul 11, 2007, at 6:40 PM, Jodi S. wrote:

> Is it possible that its the .save! that’s raising?

nope. it definitely not.

## -a

we can deny everything, except that we have the possibility of being  
better. simply reflect on that.  
h.h. the 14th dalai lama

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [July 12, 2007, 10:38am UTC](https://www.ruby-forum.com/t/ar-save-bug/109167/4 "2007-07-12T10:38:42Z")

</div>

Do you have an oracle trigger that auto inserts the id into a record  
after a save?

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [July 12, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/ar-save-bug/109167/5 "2007-07-12T19:24:54Z")

</div>

On Jul 12, 2007, at 2:38 AM, Chris R. wrote:

> Do you have an oracle trigger that auto inserts the id into a record  
> after a save?

nope - but that led me to the answer: non-default sequence name in  
postgresql.

thx.

## -a

we can deny everything, except that we have the possibility of being  
better. simply reflect on that.  
h.h. the 14th dalai lama
