title: How do I access class variable?
body: <pre><code>class TestController &lt; ApplicationController
  
    def test
      @goodbay = TestClass.varible
    end
  end
  
  class TestClass
    @@varible = "var"
  end
  </code></pre>
  
  <p>and i get error </p>
  
  <pre><code>undefined method 'varible' for TestClass:Class 
  </code></pre>
  
  <p>on the line <code>@goodbay = TestClass.varible</code> </p>
  
  <p>What is wrong?</p>