Updated today - number of rows

How can I get number of rows that was updated "today"?

Table: messages (id, title, message, updated_at)

Decide on your precise definition of today (since midnight, last 24
hours etc.) and use ActiveRecord's count method.

Fred

named_scope :recent, lambda { {:conditions => ['updated_at > ?',
24.hours.ago]} }