html code after render partial doesn't display
<p>I am using Rails 5 on my project.</p>

<p>I have a <code>home_controller</code> with <code>index</code> action. In the index view i render a partial(<code>_stories.html.erb</code>) but the code after partial doesn't display, seems some times if i get back from some page it shows up. </p>

<p>What's the issue here?</p>

<p>And if i want to make <code>index.html.erb</code> (home page) with some layout parts, what's the correct way? Is render different partials in `index.html.erb'?</p>

<p><strong>index.html.erb</strong></p>

<pre><code>&lt;%= render :partial =&gt; 'stories/stories' %&gt;
&lt;!-- The code below doesn't show up --&gt;
&lt;button id="myBtn"&gt;Open Modal&lt;/button&gt;
&lt;div id="myModal" class="modal"&gt;
  &lt;div class="modal-content"&gt;
    &lt;span class="close"&gt;×&lt;/span&gt;
    &lt;p&gt;Some text in the Modal..&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>