title: Rails: Where to define a helper method that will be available to several controllers?
body: <p>I would like to define a helper method, <code>my_method</code>, that will be available inside <code>BuyersController</code> methods (like <code>index</code>, <code>create</code>, e.t.c.).</p>
  
  <p>I tried to define it in <code>app/helpers/application_helper.rb</code> but it didn't work:</p>
  
  <pre><code>undefined method `my_method' for #&lt;BuyersController:0x26df468&gt;
  </code></pre>
  
  <p>It should be in some shared place because I want to use it in other controllers also. This is why I tried <code>app/helpers/application_helper.rb</code>.</p>
  
  <p>What is the right place to define it ?</p>