necker
necker

Reputation: 7163

Rails 4 way code to display iframe

What is a proper way in rails 4 to display an iframe?

Until upgrade from rails 3.x to rails 4 the following code worked normally and displayed a page inside another as it should.

<iframe src="http://google.com" frameborder="0" style="width:1050px;height:1230px;margin:0 auto;"></iframe>

Were there any updates in rails 4 made as to how an iframe should be rendered? I googled for some hours now without success and would greatly appreciate any answers or suggestions you might have!

Upvotes: 0

Views: 259

Answers (1)

Jeremy Green
Jeremy Green

Reputation: 8574

I don't think there should be any difference between Rails 3 and Rails 4 for this. You're not really using any Rails features here. You're just including standard html in a template.

Upvotes: 1

Related Questions