Displaying 1 result from an estimated 1 matches for "premise_id".
2011 Mar 01
6
render :collection calling partial with phantom object?
..._service: metered_service =
#{metered_service.inspect}") %>
So here''s what''s weird: With a newly created premise -- before I''ve
added any metered services -- the _metered_service.html.erb partial gets
called with a metered service object whose ID is nil and whose
premise_id field is filled in with the owning premise. But there should
be ZERO metered services, not one. The console will show something
like:
== 1800 Pennsylvania Avenue has 0 metered services
MeteredService Load (0.2ms) SELECT "metered_services".* FROM
"metered_services" WHERE (&...