From dbc4f3ddea925e9e6f1ecce5d10359e13d850420 Mon Sep 17 00:00:00 2001 From: Satish Date: Thu, 12 Aug 2010 13:45:55 -0700 Subject: [PATCH] Migrated from trying-to-understand-drops v5 --- Trying-to-Understand-Drops.textile | 1 + 1 file changed, 1 insertion(+) diff --git a/Trying-to-Understand-Drops.textile b/Trying-to-Understand-Drops.textile index 9c368b8..7f45566 100644 --- a/Trying-to-Understand-Drops.textile +++ b/Trying-to-Understand-Drops.textile @@ -9,6 +9,7 @@ Here are the 'drops' liquid_attributes << :login << :email end +Explanation of above code
Liquid accepts only a limited number of objects types i.e. Strings, Arrays, Hashes, Numerics, and Booleans. If we want to pass our Active Record object to liquid templates we have to define that logic explicitly(Liquid doesn't provide that functionality). Basically there are three ways methods/ways to define that logic http://wiki.github.com/tobi/liquid/getting-liquid-to-work-in-rails.