title: Ruby on Rails - Access controller variable from model
body: <p>I am trying to access an instance variable which is set in the controller in the model. The controller is the products controller and the model is the products model. The instance variable is a instance of another model called account.</p>
  
  <p>The instance variable is <code>@current_account</code></p>
  
  <p>When I run the code nothing happens, I do not get an error.  Does anyone know where I can find something read about access instance variables set in the controller from the model?</p>
  
  <p>Thanks</p>
  
  <p>Eef</p>