Différence de rails en minutes 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