On Aug 17, 8:42 pm, Fearless Fool <[email protected]> wrote:

> How can save! complete without error and yet not save anything?  Either
> I've overlooked some key piece of documentation or else this is a bug.
> Which is it?
>
You've got it out of find_by_sql so rails thinks its an existing row.
Furthermore rails doesn't think the object has changed since you
retrieved it from the database, so it shortcircuits the save (since
from its point of view there is nothing to save)

Fred
> - ff
>
> ps:I'm sure I can work around this by creating a virgin
> PremiseObservation and copying each field over into it.  That's a PITA,
> but manageable.
>
> pps: bash$ rake about
> (in /Users/ff/Developer/dev)
> About your application's environment
> Ruby version              1.9.2 (x86_64-darwin10.4.0)
> RubyGems version          1.3.7
> Rack version              1.2
> Rails version             3.0.0.rc
> Active Record version     3.0.0.rc
> Action Pack version       3.0.0.rc
> Active Resource version   3.0.0.rc
> Action Mailer version     3.0.0.rc
> Active Support version    3.0.0.rc
> Application root          /Users/ff/Developer/bd
> Environment               development
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to