Ticket #477 (closed defect: duplicate)

Opened 10 months ago

Last modified 10 months ago

partial locals lost after another partial is loaded with locals

Reported by: dcpark..@gmail.com Assigned to:
Priority: major Milestone: The Future
Component: Merb Keywords:
Cc:

Description

This could be thought of as similar to http://merb.devjavu.com/ticket/438, but this one's definitely a bug, not a feature request. Try the following in a partial that has a local or two: 1) run this: Merb.logger.info "Local Variables A:\n" + @_merb_partial_locals.map {|k,v| ":#{k} => #{v.inspect}"}.join("\n") 2) then, include another partial with locals: partial 'somepartial', :with => some_var 3) last, run this: Merb.logger.info "Local Variables B:\n" + @_merb_partial_locals.map {|k,v| ":#{k} => #{v.inspect}"}.join("\n")

In my experience, the second list returns what should be true INSIDE 'somepartial', and my old locals are gone.

Change History

01/28/08 14:00:58 changed by iv..@gweezlebur.com

  • milestone changed from 0.5.2 to The Future.

02/11/08 13:43:44 changed by shayarne..@gmail.com

  • status changed from new to closed.
  • resolution set to duplicate.