title: Rails Variable across all controller actions
body: <p>This should be a very simple rails question. I have a variable like the following.</p>
  
  <pre><code>@administration = Administration.first
  </code></pre>
  
  <p>I want this variable to be accessible through every controller action across all my controllers so for example if I have a Product controller and inside of it I have the usual CRUD actions, I want the @administration variable as defined above to be put into all the CRUD actions. (It would not be needed in destroy or create or update). I have many controllers throughout my project and I was wondering if there is an easier way than adding it manually through all of the actions that I want it in. </p>
  
  <p>I tried a global variable</p>
  
  <pre><code> $administration = Administration.first
  </code></pre>
  
  <p>but I run into an issue where it is not updated when I update the actual content of the Administration.first table. Also, I would like to avoid global variables. </p>
  
  <p>Any help would be much appreciated. Thanks! :)</p>