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/
Hi, 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) Thanks ! Fran?ois
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