> There's definitely *something* weird going on. Can you try putting
> an8.reload here in the code and see if it changes the results? The
> only thing I can think of is the HABTM is somehow leaving incorrect
> data behind.

Sure enough, if I add "an8.reload" then "an7 = an8.asset_node"
correctly returns an7.  But I noticed in the log that the set of SQL
queries with and without reload is exactly the same.  I expected
reload to run another query, as the doc says it "Reloads the
attributes of this object from the database", but it didn't.

-Russ
--~--~---------~--~----~------------~-------~--~----~
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