【发布时间】:2016-03-04 09:35:59
【问题描述】:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title> ABC </title>
</head>
This is index.html.erb
<frameset rows="170,*" frameborder="0" border="0" framespacing="0">
<frame name="topNav" src="top_nav.html" />
</frameset>
</html>
我的布局对于这个视图是错误的。因此,html, head 仅在此视图中声明。问题是为什么这段代码在 erb 文件中不起作用?
我在页面上只看到“这是 index.html.erb”消息。
【问题讨论】:
标签: html ruby-on-rails iframe