Rails: Frameset not showing
I am trying to create a frameset and I am doing this using Rails. Basically my view looks like this
<html>
<head></head>
<body>
<frameset>
<frame src="http://www.nba.com" />
</frameset>
</head>
</html>
And my controller looks like
def basket
respond_to do |format|
format.html { re开发者_运维知识库nder 'basket.html.erb', :layout => false }
end
end
But when I go to
http://localhost:3000/stores/basket
I get this for html source
<html>
<head></head>
<body>
<frameset>
<frame src="http://www.nba.com" />
</frameset>
</head>
</html>
but firebug gives me
<html>
<head></head>
<body></body>
</html>
and the window does not display the nba.com frame. Does anyone know why this is happening?
This is not a Rails question, but a html question.
Framesets don't belong in the body tag. Try this:
<html>
<head></head>
<frameset>
<frame src="http://www.nba.com" />
</frameset>
</html>
精彩评论