Wiki articles tagged with "activerecord"

Showing 1-2 of 2 items.
3 0
Viewed: 20 597 times
Version: 1.1
Category: How-tos

Using counters with ActiveRecord

Created 12 years ago by davi_alexandre, updated 9 years ago by marcovtwout.

Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

11 1
Viewed: 44 990 times
Version: 1.1
Category: Tips