> Is this a bug, or am I missing some elementary principle of
> has_many?

Associations are cached.  Pass true to force a reload.

fred.products(true)

This is described under the 'Caching' header in the docs:

http://rails.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html

--
Rick Olson
http://techno-weenie.net
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to