0

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!

2
  • Found that it's got sth to do with X-Frame-Options probably? Commented Oct 10, 2013 at 9:37
  • Probably here lies an answer: developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options. Since I do not push stuff on our server I'll wait for partner to "wake-up" and will let you know if it works Commented Oct 10, 2013 at 9:51

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

We set x-frame-option to "GOFORIT", and now it displays properly.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.