[rspec-users] locals in partials

Hans de Graaff hans at degraaff.org
Fri Oct 12 14:46:05 EDT 2007


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 regards,

Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20071012/0d43e8b3/attachment.bin 


More information about the rspec-users mailing list