I've spent several hours on this; in a view,
render :partial => ? , :locals => (....}
it seems if you first call:
render :partial => ? without a locals hash
and THEN call render :partial => ?
with a locals hash the locals hash IS NOT passed to the view.
If the first call includes a locals hash with the same variables set to ''
then the second call with REAL values will work.