title: View can't see instance variable defined in ApplicationController, in Rails
body: <p>Hey guys! I'm getting a problem that is driving me crazy.</p>
  
  <p>I defined an instance variable inside my <code>ApplicationController</code>:</p>
  
  <pre><code>def initialize
      @stylesheets = []
  end
  </code></pre>
  
  <p>When I try to access it from a view, say SomeNamespace::SiteSection (index.html.erb):</p>
  
  <pre><code>&lt;% @stylesheets &lt;&lt; "some-stylesheet" %&gt;
  &lt;h1&gt;Blablabla&lt;/h1&gt;
  </code></pre>
  
  <p>the instance variable <code>@stylesheets</code> isn't visible, i.e., ruby says it wasn't defined.</p>
  
  <p>So, how I make this instance variable visible inside the views?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Additional info:</p>
  
  <ul>
  <li>I'm using ruby 1.9.2 with rails 3.0.4</li>
  <li>I'm using namespaces (the <code>ApplicationController</code> isn't namespaced)</li>
  </ul>