Wiki articles tagged with "activerecord"

Showing 1-2 of 2 items.
3 0
4 followers
Viewed: 21 648 times
Version: 1.1
Category: How-tos

Using counters with ActiveRecord

Created 13 years ago by davi_alexandre, updated 10 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
17 followers
Viewed: 46 774 times
Version: 1.1
Category: Tips