Nested partials losing the view context ?

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


Hi all !

I can't seem to make a simple thing work...  The code is here: 
http://pastie.caboo.se/130660

Essentially, that's a form with a couple of partials.  The backtrace is 
included in the pastie.  It looks like the context for the current view 
is lost when a partial is rendered.  In _series.html.erb:2, I use 
"series" to get the name.  This is the parameter I received from 
_form.html.erb.  On line 3, I use series again, but this time, it is 
treated as a missing method call, and ends up in the controller, as 
designed.

Can anyone shed any light on this ?

Thanks !
--
François Beausoleil
http://blog.teksol.info/


More information about the Merb-devel mailing list