title: Difference between actions and filters in rails
body: <p>I am a beginner and I have a really basic question confusing me i.e</p>
  
  <ul>
  <li><strong>What is the difference between actions and filters?</strong></li>
  </ul>
  
  <p>for example we have before_action and after_action in rails 4 but we call them filters, why?
  I read somewhere that filters are for controllers and actions are for models, is that it?  </p>