search for: weclom

Displaying 1 result from an estimated 1 matches for "weclom".

Did you mean: weclome
2006 May 16
2
liquid: passing objects
...dy) @x = @liquid_body.render(''fname'' => @customer.fname, ''customer'' => @customer) @draft = render_to_string(:inline => @x) end In the view: <%= draft -%> In my template stored in the DB: Name: {{ fname }}<br/> Weclome {{ customer.fname }}. The result: {{ fname }} returns the value. {{ customer.fname }} comes up empty. I''ve tried a few variations -- local vs. instance variables, mostly. Surely I don''t have to manually assign an explicit hash every time I want to pass the attributes of an A...