Use an iframe of a localhost app
<p>I have a page of my rails app that I would like to use as an iframe on different webpage. The part of my rails app is the <code>new</code> view for my <code>score</code> object. At the moment my rails app is just locally hosted. To test my iframe, I have an HTML page in my <code>public</code> folder of my rails app. </p>

<p>Here is the <code>test.html</code> page</p>

<pre><code>&lt;html&gt;

&lt;iframe width="400" height="400" src="scores/new?site_id=191"&gt;

&lt;/iframe&gt;

&lt;/html&gt;
</code></pre>

<p>This isn't working, though. Here is the error I get when I inspect the iframe</p>

<p><code>GET file:///Users/spencerhanson/Documents/Projects/net-promoter-score/public/scores/new?site_id=191 net::ERR_FILE_NOT_FOUND</code></p>

<p>I know public/scores/new/.. isn't a place that exists in my project. I can't figure why it's trying to look there. The <code>test.html</code> file is in the <code>/public/</code> directory. The thing here is, I had this working before, with the same <code>src</code> tag in my iframe. I haven't changed anything, and then one day the iframe just stopped working on my test page. I can't figure out what's going wrong. I know it's probably the <code>src</code> tag of my iframe, since I'm trying to display a site hosted locally on a page that is also local</p>