diff --git a/Using-Liquid-without-Rails.textile b/Using-Liquid-without-Rails.textile index 2df620e..02119eb 100644 --- a/Using-Liquid-without-Rails.textile +++ b/Using-Liquid-without-Rails.textile @@ -29,13 +29,13 @@ to_liquid? Where did that come from? Turns out you need to add a method to your
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