1

我的代码有什么问题?这是索引

<%= post.impressionist_count(:filter=>:ip_address) %>

这是控制器

impressionist actions: [:show], unique: [:session_hash]
  is_impressionable :counter_cache => true, :column_name => :my_column_name, :unique => true

这是post.rb

is_impressionable :counter_cache => true, :column_name => :my_column_name, :unique => true
4

0 回答 0