title: Counting page views using “impressionist” gem Ruby on Rails
body: <p>I am using impressionist gem to count each page impression from people who seen article page but the problem is that i get it only work for one article and the counter for the other are for 0 </p>
  
  <p>this is my code</p>
  
  <pre><code>class Article &lt; ActiveRecord::Base
    is_impressionable
  end
  
  class ArticlesController &lt; ApplicationController
    impressionist actions: [:show], unique: [:session_hash]
  end
  </code></pre>
  
  <p>This is my show action</p>
  
  <pre><code>&lt;%= "#{@article.impressionist_count} views" %&gt;
  </code></pre>