title: How to use "impressionist" gem in Rails?
body: <p>I am new to rails dev and is looking to use <a href="https://github.com/charlotte-ruby/impressionist" rel="nofollow">https://github.com/charlotte-ruby/impressionist</a> but not able to figure out how to use it looking at its documentation. I have done the migration and when trying to put </p>
  
  <pre><code>class ArticlesController &lt; InheritedResources::Base
    impressionist
  end
  </code></pre>
  
  <p>OR </p>
  
  <pre><code>class ArticlesController &lt; InheritedResources::Base
    impressionist :actions=&gt;[:show,:index]
  end
  </code></pre>
  
  <p>it is throwing no method found error. <strong>I am unsure which code needs to be put in model, which to be in controller and which to be in views</strong> to see view_count, any help ? </p>