Posted By

wackimonki on 02/26/07


Tagged

template rails rubyonrails


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

imit
webstic


Rendering Partial Template while Passing Variable


 / Published in: Ruby
 

Renders the partial template called 'cart', sends along local variable @cart, this will be known locally using the same name as the partial, 'cart'.

  1. <%= render(:partial => "cart", :object => @cart) %>

Report this snippet  

You need to login to post a comment.