title: How to define helper_method in application controller
body: <p>I have following method in my application_controller</p>
  
  <pre><code>def primary_contact_pending_approval(opportunity)
      if current_user and current_user.account.already_signed?(opportunity)
        return true
      else
        return false
      end
  end
  </code></pre>
  
  <p>how do I make this method as helper method, so that I can use it in the <code>views</code> also.</p>
  
  <p>I tried </p>
  
  <pre><code>helper_method :primary_contact_pending_approval(opportunity)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>helper_method "primary_contact_pending_approval(opportunity)"
  </code></pre>
  
  <p>but both gives syntax error.</p>