title: How to get the value of a instance variable in one method to another method in same controller?
body: <p>One method in my controller is as follows:</p>
  
  <pre><code>def new_equipment_matches_wanted
   #..........Big chucnk of code of about 7 to 8 lines and then..
   @receiver
  end
  </code></pre>
  
  <p>Now I am defining another method where I want to access the value of this <code>@receiver</code> instance variable. And it will have a separate template.</p>
  
  <pre><code>def send_receivers_to_admin
   #supposedly I am trying send @receiver values here
  end 
  </code></pre>
  
  <p>How can I achieve this? Or should I write the same code in the second method also just to access the values in that variable?  </p>