title: Reusing Private Methods in Rails 5
body: <p>Most of the s<a href="https://www.google.co.uk/search?q=reuse%20private%20methods%20rails&amp;oq=reuse%20private%20methods%20rails&amp;gs_l=serp.3..0i71k1l8.0.0.0.13896.0.0.0.0.0.0.0.0..0.0....0...1c..64.serp..0.0.0.pW6Mew0KtvI" rel="nofollow noreferrer">earched questions</a> so far relates to "what's the difference". I need to know how to reuse each across different controllers.</p>
  
  <p>Below is just an example.</p>
  
  <p><strong>ApplicationController:</strong></p>
  
  <pre><code>private
   def redirect
    redirect_to welcome_path
   end
  </code></pre>
  
  <p><strong>Any Controller:</strong></p>
  
  <pre><code>class AnyController &lt; ApplicationController
   before_action :redirect, only: :about
  
   def about
   end
  end
  </code></pre>
  
  <p>I now have many controllers that uses the same private methods and wanted to a central place to store it. You know, keeping it DRY sort of thing. Where to place these private methods to reuse across any controller that inherits from ApplicationController? If a question like this has already been answered, please point me there. Thanks.</p>