undefined method `id' for nil:NilClass on my style tags
<p>I am getting <code>undefined method 'id' for nil:NilClass</code> when I load my rails 4 app the error shows on this line.</p>

<pre><code>&lt;%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' =&gt; true %&gt;
  &lt;%= javascript_include_tag 'application', 'data-turbolinks-track' =&gt; true %&gt;
  &lt;script src="https://unpkg.com/flickity@2.0/dist/flickity.pkgd.min.js"&gt;&lt;/script&gt;
  &lt;%= csrf_meta_tags %&gt;
</code></pre>

<p>When I remove the style tag and javascript tag the page loads fine. I am using rails 4.</p>