title: Why can't I access this method defined in my model from inside my controller?
body: <p>I have this method in my videos controller:</p>
  
  <pre><code>def notifications
    erase_notification_count
  end
  </code></pre>
  
  <p>It calls the <code>erase_notification_count</code> method defined in my user model:</p>
  
  <pre><code>def erase_notification_count
    new_notification_count += (self.notifications.count * (-1))
  end
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre><code>NameError in VideosController#notifications
  
  undefined local variable or method `erase_notification_count' for #&lt;VideosController:0x102f0fed0&gt;
  </code></pre>
  
  <p>Why am I getting this error? How do I fix it?</p>