Migrated from using-liquid-without-rails v3

odorcicd
2010-08-12 13:45:57 -07:00
parent b4f30bad56
commit 70737f2deb
+3 -3
@@ -29,13 +29,13 @@ to_liquid? Where did that come from? Turns out you need to add a method to your
<pre><code>class Product
attr_accessor :name, :price
def initialize(name,price)
def initialize(name, price)
@name = name
@price = price
end
to_liquid
{ :name => self.name,
:prict => self.price }
{ "name" => self.name,
"price" => self.price }
end
end</code></pre>