Rails Diferença em minutos entre 2 datetime
created = article.created_at
updated = article.updated_at
minutes = ((updated - created) * 24 * 60).to_i
Lioruby
created = article.created_at
updated = article.updated_at
minutes = ((updated - created) * 24 * 60).to_i