On 10/12/07, Hans de Graaff <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-10-12 at 12:47 -0400, Jonathan Linowes wrote:
> > that works for you?
> > I'm basically doing the same thing but the
> >
> >render "/pages/_page_menu.html.erb", :locals => { :pages => @foo }
>
> render :partial => 'pages/page
On Fri, 2007-10-12 at 12:47 -0400, Jonathan Linowes wrote:
> that works for you?
> I'm basically doing the same thing but the
>
>render "/pages/_page_menu.html.erb", :locals => { :pages => @foo }
render :partial => 'pages/page_menu', :locals => {:pages => @foo}
Note the :partial.
Kind regar
oops, of course that last line wouldnt be commented out
On Oct 12, 2007, at 12:47 PM, Jonathan Linowes wrote:
>
> that works for you?
> I'm basically doing the same thing but the
>
> render "/pages/_page_menu.html.erb", :locals => { :pages => @foo }
>
> produces error
>
> undefined local
that works for you?
I'm basically doing the same thing but the
render "/pages/_page_menu.html.erb", :locals => { :pages => @foo }
produces error
undefined local variable or method `pages' for #
but it works when i add to the top of the partial:
<%# pages ||= @foo #kludge fo
On Fri, 2007-10-12 at 10:33 -0400, Jonathan Linowes wrote:
> hiya, in specing a partial, how can i assign a local var that is
> normally passed via :locals ? i tried adding :locals => to the render
> call but that doesnt seem to take
it 'should include :var'
render :partial => 'your/partial', :
Hi Jon,
I was having trouble with partials a while ago and I think it might have
info on solving your problem
http://www.nabble.com/spec%27ing-view-render-partial-collection%2C-local-variable-not-found-tf4577761.html
I'm guessing your referring to when you called your parital in a spec:
it "s
hiya, in specing a partial, how can i assign a local var that is
normally passed via :locals ? i tried adding :locals => to the render
call but that doesnt seem to take
linoj
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.o