Rendering Partial Template while Passing Variable


/ Published in: Ruby
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. <%= render(:partial => "cart", :object => @cart) %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.