Nested partials losing the view context ?

François Beausoleil francois at teksol.info
Wed Dec 19 16:42:03 EST 2007



François Beausoleil a écrit :
> Daniel N a écrit :
>> On Dec 20, 2007 8:08 AM, François Beausoleil <francois at teksol.info 
>> <mailto:francois at teksol.info>> wrote:
>>
>>     Can anyone shed any light on this ?
>>
>> What version of merb are you using.  I think this was fixed in the 
>> latest gem.  The fix is definitley in trunk.  Hopefully it fixes this 
>> issue.
> 
> Of course, why can't I put out complete information...
> 
> $ gem list -l merb
> 
> *** LOCAL GEMS ***
> 
> merb (0.4.2)
> merb_activerecord (0.4.3)

Unless I read incorrectly, this is wrong:

http://merb.devjavu.com/browser/trunk/lib/merb/template/erubis.rb?rev=1032#L24

Is a new view context instantiated for each partial call ?  If not, then 
the context is actually replaced with each partial call.

Bye,
François


More information about the Merb-devel mailing list