想象一下,我有@template
这是一个ActionTemplate::View
的实例。如何将erb转换为html?
问题是:我如何将@template
转换为@ template.source为<%= "hello from erb" %>
至hello from erb
?感谢
想象一下,我有@template
这是一个ActionTemplate::View
的实例。如何将erb转换为html?
问题是:我如何将@template
转换为@ template.source为<%= "hello from erb" %>
至hello from erb
?感谢
也许'render @ template',从未见过任何实际意义上使用的模板实例 – DVG 2012-07-20 03:31:12