created = article.created_at updated = article.updated_at minutes = ((updated - created) * 24 * 60).to_i