From 70737f2deb6c13c6d4c0d4e62ca423406708bc7f Mon Sep 17 00:00:00 2001 From: odorcicd Date: Thu, 12 Aug 2010 13:45:57 -0700 Subject: [PATCH] Migrated from using-liquid-without-rails v3 --- Using-Liquid-without-Rails.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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