title: Ruby Instance and Global Variables in Relation to Rails
body: <h1>Question 1:</h1>
  <p>What is the scope of an instance variables in Rails actions (methods). Does each connection to the server form a new instance of a controller?</p>
  <p>For example:</p>
  <ul>
  <li>User_A loads a 'setter' page, causing a random instance variable called <code>@randInt</code> to be generated.</li>
  <li>User_B (from another PC elsewhere) loads a 'getter' page, requesting <code>@randInt</code>.</li>
  </ul>
  <p>Will User_B retrieve the <code>@randInt</code> set by User_A? Or is that instance variable unique to User_A's connection?</p>
  <h1>Question 2:</h1>
  <p>Question 2 is the same as question 1, but using <code>@@randInt</code> instead. If the answer to Question 2 is, &quot;yes, both users can see this value,&quot; is it an acceptable practice to use global variables in Rails to store temporary data that you want to share among multiple users?</p>