开发者

undefined method `call' for LiquidView:Class

开发者 https://www.devze.com 2022-12-28 02:38 出处:网络
I trying to use Liquid template engine plugin , but I \'m getting the following error while controller tries to render a .liquid template .

I trying to use Liquid template engine plugin , but I 'm getting the following error while controller tries to render a .liquid template .

"undefined method `call' for LiquidView:Class"

product_controller.rb

@product = Product.find(:first) render :layout=> false, :template=> "product/show.liquid"

product/show.li开发者_如何学Pythonquid

Product name : {{product.name}}

Price : {{product.price}}

I installed it as a plugin according to http://wiki.github.com/tobi/liquid/getting-liquid-to-work-in-rails

I using Rails 2.3.5 and Ruby 1.8.7.

Does anyone had the same problem before ?


Problem solved.

Instead installing it using script/plugin install http://liquid-markup.googlecode.com/svn/trunk

I just downloaded the source from github , extracted and placed it on vendors/plugin directory.

Now I'm able to use .liquid view files on my application .

Thanks ...

0

精彩评论

暂无评论...
验证码 换一张
取 消