Updated Introduction to Drops (markdown)

codyrobbins
2011-11-17 12:11:14 -08:00
parent 1f4206f062
commit 138a52d3b8
+4 -1
@@ -59,7 +59,10 @@ Returns the drop instance.
### Controller
template = Liquid::Template.parse( File.read( product_view.liquid ) ) template.render( { :product => ProductDrop.new(@product) } )
file = File.read(product_view.liquid)
template = Liquid::Template.parse(file)
drop = ProductDrop.new(@product)
template.render('product' => drop)
### View