[Boulder Ruby Group] ar save! problem

Tony Arcieri tony at clickcaster.com
Wed Jul 11 20:40:01 EDT 2007


There's a #update instance method?  I'm looking at the ActiveRecord::Base
docs and I don't see it documented there.  Just trying it out here it
returns the primary key of the record, and the sequence you describe seems
to be working fine.

-- 
Tony Arcieri
ClickCaster, Inc.
tony at clickcaster.com

On 7/11/07, ara.t.howard <ara.t.howard at gmail.com> wrote:
>
>
> anybody every seen this behaviour:
>
>   @model.save!          # no error
>   @model.update         # no error
>   Model.find @model.id  # raises
>
> seems impossible...
>
>
> -a
> --
> we can deny everything, except that we have the possibility of being
> better. simply reflect on that.
> h.h. the 14th dalai lama
>
>
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070711/d9dee742/attachment.html 


More information about the Bdrg-members mailing list