title: how to pass session variable to model in RoR?
body: <p>I used a global variable in my app for passing information before. But I got a problem and thanks everyone here suggested me to store those data in session with database.</p>
  
  <p>I tried, but I found that I can't access the session variable in Model. I googled and knew this is the Model normal behavior, RoR won't pass the session variable to Model.</p>
  
  <p>So, I would like to use that session variable in validation and also the controller....</p>
  
  <ol>
  <li><p>how to pass the value of the
  session variable into Models? or</p></li>
  <li><p>is there any other method for my
  use case? I need a variable storing
  a value, which is required in all
  MVCs, and should be independent
  between different concurrent users.</p></li>
  </ol>
  
  <p>Thanks everyone. :)</p>