Ruby on rails 未定义的方法'call';对于LiquidView:类
我试图使用Liquid template engine插件,但当controller尝试渲染.Liquid模板时,我遇到以下错误 “LiquidView:Class的未定义方法'call'” 产品控制器.rbRuby on rails 未定义的方法'call';对于LiquidView:类,ruby-on-rails,liquid,Ruby On Rails,Liquid,我试图使用Liquid template engine插件,但当controller尝试渲染.Liquid模板时,我遇到以下错误 “LiquidView:Class的未定义方法'call'” 产品控制器.rb @product=product.find(:first) render:layout=>false,:template=>product/show.liquid 产品/展示液 产品名称:{{Product.name}} 价格:{{product.Price}} 我安装它作为一个插件根据
@product=product.find(:first) render:layout=>false,:template=>product/show.liquid 产品/展示液
产品名称:{{Product.name}}
价格:{{product.Price}} 我安装它作为一个插件根据 我正在使用Rails 2.3.5和Ruby 1.8.7 以前有人遇到过同样的问题吗?问题已解决 而是使用 脚本/插件安装 我刚刚从github下载了源代码,将其解压缩并放在vendors/plugin目录下 现在我可以在我的应用程序上使用.liquid view文件了
谢谢…在Rails上使用液体似乎有问题>=2.3.4请参见,但我仍然无法使其工作!