[Boulder Ruby Group] ar save! problem
Tim Pease
tim.pease at gmail.com
Wed Jul 11 23:01:42 EDT 2007
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...
>
>
Does this happen only with newly created Model objects, or does this
happen with Model objects loaded from the database?
Does AR guarantee that it keeps the AR object and the database tables
in sync at all times? It seems like that would be hard to do for newly
created objects.
Just another thought. Is your @model.id valid when you call Model.find?
TwP
More information about the Bdrg-members
mailing list