ruby on rails - Inject an @ variable into src of an IFRAME -
I have a dynamic URL that I am creating in my controller to serve as the source of IFRAME I am currently saving url as @iframe_url when I go to the IFRAME on the scene, I am
& lt; IFRAME src = & lt;% = @ iframe_url% & gt; / & Gt;
Has anyone benefited, can someone help me?
I'm not sure this is a problem, but you should always include in quotation marks:
& lt; IFRAME src = "& lt;% = @ iframe_url%> / & Gt;
Comments
Post a Comment