【发布时间】:2012-07-20 03:21:43
【问题描述】:
想象一下,我在 rails 中有 @template,它是 ActionTemplate::View 的一个实例。
问题是:如何将@template.source 为<%= "hello from erb" %> 的@template 转换为hello from erb?谢谢
【问题讨论】:
-
可能是
render @template,但从未见过任何实际意义上使用的模板实例
标签: ruby-on-rails erb templating